/* Seedance Studio, web beta. Huong sci-fi dien anh (admin chot 16/11, chuan dep: Dreamina).
   Nen xanh den, anh that phu rong, khung soan kinh noi tren anh. Anh sang lay tu chinh buc anh nen:
   xanh bang (ice) cho trang thai dang chon, cam ion cho hanh dong chinh. Khong dung bong phat sang, khong chuyen mau tim. */
:root {
  --bg: #06080c;
  --bg-2: #0b0f15;
  --bg-3: #111722;
  --glass: rgb(13 18 26 / .66);
  --line: rgb(190 220 255 / .10);
  --line-2: rgb(190 220 255 / .20);
  --text: #eaf2fb;
  --soft: #a9b6c6;
  --faint: #7f8d9e;
  --ion: #ff6b3d;
  --ion-2: #ff8257;
  --on-ion: #1b0a04;
  --ice: #8fe3f2;
  --ice-bg: rgb(143 227 242 / .12);
  --ok: #62d8a3;
  --warn: #ffc857;
  --err: #ff8177;
  --f-display: "Unbounded", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 8px; --r: 12px; --r-l: 18px;
  --rail: 232px; --top-h: 56px; --tab-h: 58px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: #2a3442 var(--bg); accent-color: var(--ion); }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--ion); }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { text-wrap: pretty; margin: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ion); color: var(--on-ion); }
.hide { display: none !important; }
.soft { color: var(--soft); }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; display: block; }

/* ---------- khung ung dung */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; padding: 18px 12px 16px; border-right: 1px solid var(--line); background: #080b10; display: flex; flex-direction: column; gap: 4px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font: 600 .9375rem/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand small { font: 500 .6875rem/1 var(--f-body); color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 7px; letter-spacing: 0; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); color: var(--soft); font-weight: 500; font-size: .9375rem; transition: background .15s var(--ease), color .15s var(--ease); }
.rail nav a:hover { color: var(--text); background: rgb(255 255 255 / .04); }
.rail nav a.on { color: var(--text); background: rgb(255 255 255 / .08); }
.rail .sp { flex: 1; }
.wallet-card { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); transition: border-color .15s; }
.wallet-card:hover { border-color: var(--line-2); }
.wallet-card span { display: block; font-size: .8125rem; color: var(--faint); }
.wallet-card b { display: block; font: 600 1.25rem/1.3 var(--f-body); font-variant-numeric: tabular-nums; margin: 2px 0 10px; }
.wallet-card i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--ion-2); }
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px 0; }
.ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: var(--r-s); color: var(--soft); font-size: .875rem; font-weight: 500; }
.ghost:hover { color: var(--text); background: rgb(255 255 255 / .05); }
.top { display: none; }
.tabs { display: none; }
main { min-width: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- nut va o nhap */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .9375rem; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text); background: rgb(255 255 255 / .04); transition: background .15s var(--ease), border-color .15s var(--ease), transform .08s; }
.btn:hover { background: rgb(255 255 255 / .10); border-color: rgb(190 220 255 / .34); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ion); border-color: var(--ion); color: var(--on-ion); }
.btn.primary:hover { background: var(--ion-2); border-color: var(--ion-2); }
.btn.big { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .8125rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 14px; outline: none; font-size: 1rem; line-height: 1.5; transition: border-color .15s; }
.field:hover { border-color: rgb(190 220 255 / .32); }
.field:focus { border-color: var(--ice); }
.field::placeholder { color: var(--faint); }
.lb { display: block; font: 600 .8125rem/1.3 var(--f-body); color: var(--soft); margin: 0 0 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--soft); display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums; transition: background .12s var(--ease), color .12s var(--ease), border-color .12s var(--ease); }
.seg button:hover { color: var(--text); border-color: rgb(190 220 255 / .36); }
.seg button.on { background: var(--ice-bg); border-color: rgb(143 227 242 / .55); color: var(--text); }
.ar { display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.ar.auto { border-style: dashed; border-radius: 4px; }   /* 17/11 dur */
.dsl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 13px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); }
.dsl-l { font-size: .8125rem; color: var(--soft); flex: 1 1 100%; }
.dsl { flex: 1 1 160px; min-width: 140px; accent-color: #9579ff; height: 28px; cursor: pointer; }
.dsl-v { font: 600 1.0625rem/1 var(--f-body); font-variant-numeric: tabular-nums; min-width: 3ch; }
.dsl-p { font-style: normal; font-size: .875rem; font-weight: 600; color: #cfc6ff; font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--ok); }
.st.run { color: var(--ice); }
.st.wait { color: var(--warn); }
.st.err { color: var(--err); }
.note { font-size: .875rem; padding: 10px 14px; border-radius: var(--r); border: 1px solid rgb(255 129 119 / .5); color: var(--err); background: rgb(255 129 119 / .06); }
.note.info { border-color: var(--line-2); color: var(--soft); background: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: .9375rem; font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 12px 28px rgb(0 0 0 / .5); }

/* ---------- san khau: anh nen + khung soan */
.stage { position: relative; isolation: isolate; padding: clamp(40px, 7vh, 84px) 32px 40px; min-height: min(78vh, 720px); display: flex; flex-direction: column; align-items: center; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(6 8 12 / .62) 0%, rgb(6 8 12 / .34) 26%, rgb(6 8 12 / 0) 46%, rgb(6 8 12 / 0) 64%, var(--bg) 100%); }
.stage h1 { font: 600 clamp(1.75rem, 3.5vw, 3rem)/1.14 var(--f-display); letter-spacing: -.02em; text-align: center; max-width: 18ch; }
.stage .lede { margin: 16px 0 30px; text-align: center; max-width: 56ch; color: #e1e9f2; font-size: 1.0625rem; text-shadow: 0 1px 10px rgb(6 8 12 / .85), 0 0 2px rgb(6 8 12 / .7); }
.stage h1 { text-shadow: 0 2px 18px rgb(6 8 12 / .55); }
.composer { width: min(940px, 100%); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .7); }
.cmp-top { display: flex; gap: 14px; padding: 16px 16px 6px; align-items: flex-start; }
.refs { display: flex; gap: 8px; flex-wrap: wrap; flex: none; max-width: 236px; }
.add { width: 68px; height: 68px; border: 1px dashed rgb(190 220 255 / .34); border-radius: var(--r); display: grid; place-items: center; color: var(--soft); transition: border-color .15s, color .15s, background .15s; }
.add:hover, .add.over { color: var(--text); border-color: var(--ice); background: var(--ice-bg); }
.thumb { position: relative; width: 68px; height: 68px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.thumb .tg { position: absolute; left: 0; right: 0; bottom: 0; font: 600 .6875rem/1 var(--f-body); padding: 4px 2px; background: rgb(6 8 12 / .8); text-align: center; pointer-events: none; }
.thumb .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgb(6 8 12 / .82); display: grid; place-items: center; }
.thumb .x .ic { width: 13px; height: 13px; }
.cmp-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; resize: none; min-height: 96px; max-height: 40vh; padding: 6px 4px; font-size: 1.0625rem; line-height: 1.55; }
.cmp-input::placeholder { color: var(--faint); }
.cmp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: rgb(255 255 255 / .06); font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .12s var(--ease), border-color .12s var(--ease); }
.chip:hover { background: rgb(255 255 255 / .11); }
.chip[aria-expanded="true"], .chip.on { background: var(--ice-bg); border-color: rgb(143 227 242 / .5); }
.chip .ic { width: 16px; height: 16px; color: var(--soft); }
.chip .cv { width: 14px; height: 14px; color: var(--faint); }
.cmp-bar .sp { flex: 1; }
.cost { text-align: right; line-height: 1.25; margin-right: 6px; }
.cost b { display: block; font: 600 1.125rem/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.cost span { font-size: .75rem; color: var(--faint); }
.cost span.short { color: var(--err); }
.cmp-tray { border-top: 1px solid var(--line); padding: 14px 16px 16px; }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.models button { text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; gap: 3px; transition: background .12s var(--ease), border-color .12s var(--ease); }
.models button:hover { border-color: rgb(190 220 255 / .36); }
.models button.on { background: var(--ice-bg); border-color: rgb(143 227 242 / .55); }
.models b { font-weight: 600; font-size: .9375rem; }
.models span { font-size: .8125rem; color: var(--soft); }
.cmp-foot { padding: 0 16px 14px; }
.cmp-hint { margin-top: 12px; font-size: .8125rem; color: #d5dfea; text-align: center; text-shadow: 0 1px 8px rgb(6 8 12 / .9); }

/* ---------- cac khoi ben duoi */
section.block { padding: 36px 0 12px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.block-h h2 { font: 600 1.25rem/1.2 var(--f-display); letter-spacing: -.01em; }
.block-h p { color: var(--soft); font-size: .9375rem; }
.block-h a { color: var(--ice); font-size: .9375rem; font-weight: 500; }
.block-h a:hover { text-decoration: underline; }
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry > * { break-inside: avoid; margin: 0 0 16px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.job { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.job .media { position: relative; background: #000; display: grid; place-items: center; aspect-ratio: 9 / 16; max-height: 380px; width: 100%; }
.job .media.wide { aspect-ratio: 16 / 9; }
.job .media.sq { aspect-ratio: 1; }
.job .media.busy { aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.job .media.busy::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(143 227 242 / .09) 50%, transparent 70%); background-size: 220% 100%; animation: sweep 2.4s linear infinite; }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.job video { width: 100%; height: 100%; object-fit: contain; }
.pct { font: 600 2rem/1 var(--f-display); letter-spacing: -.02em; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .08); }
.prog i { display: block; height: 100%; background: var(--ice); transition: width .6s var(--ease); }
.job .meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.job .top { display: flex; align-items: center; gap: 10px; }
.job .top b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.job .spec { font-size: .8125rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.job .txt { font-size: .875rem; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.job .why { font-size: .8125rem; color: var(--err); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job .act { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
.shot { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); display: block; width: 100%; text-align: left; }
.shot img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.03); }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 14px 13px; background: linear-gradient(to top, rgb(6 8 12 / .86), rgb(6 8 12 / 0)); }
.shot .cap b { font-weight: 600; font-size: .9375rem; }
.shot .cap span { position: absolute; right: 12px; bottom: 11px; display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--on-ion); background: var(--ion); border-radius: 999px; padding: 6px 10px; opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.shot:hover .cap span, .shot:focus-visible .cap span { opacity: 1; transform: none; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 44px 24px; text-align: center; color: var(--soft); }
.empty b { display: block; color: var(--text); font: 600 1.0625rem/1.3 var(--f-body); margin-bottom: 6px; }
footer.ft { margin-top: 40px; border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--faint); font-size: .875rem; }
footer.ft .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer.ft a:hover { color: var(--text); }

/* ---------- trang con */
.page { padding: 44px 0 80px; }
.page-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-h h1 { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--f-display); letter-spacing: -.02em; }
.sub { color: var(--soft); max-width: 62ch; margin: 0 0 26px; }
.fare-box { max-width: 900px; }
.fare-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: 0 0 18px; }
table.fare { width: 100%; border-collapse: collapse; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.fare th, table.fare td { text-align: right; padding: 14px 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.fare tr:last-child td { border-bottom: 0; }
table.fare th:first-child, table.fare td:first-child { text-align: left; }
table.fare thead th { font: 600 .8125rem/1.3 var(--f-body); color: var(--faint); }
table.fare td { font-weight: 500; }
table.fare td:first-child { color: var(--soft); }
table.fare tbody tr:hover td { background: rgb(255 255 255 / .03); }
.tile { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); text-align: left; display: block; width: 100%; transition: border-color .15s; }
.tile:hover { border-color: rgb(190 220 255 / .34); }
.tile video { width: 100%; height: auto; background: #000; }
.tile .info { padding: 10px 13px 13px; display: flex; flex-direction: column; gap: 5px; }
.tile .info span { font-size: .8125rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.tile .info p { font-size: .875rem; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgb(3 5 8 / .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.sheet .box { width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-l); display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.sheet video { width: 100%; max-height: calc(100vh - 42px); background: #000; }
.sheet .side { padding: 22px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); min-width: 0; }
.sheet .side .txt { font-size: .9375rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; color: var(--soft); }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; }
.panel h2 { font: 600 1.0625rem/1.3 var(--f-body); margin: 0 0 16px; }
.wallet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.bal { font: 600 clamp(2.25rem, 5vw, 3.5rem)/1.1 var(--f-display); letter-spacing: -.03em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.rule { height: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.qr { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.qr img { width: 200px; height: 200px; border-radius: var(--r-s); background: #fff; padding: 6px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.kv div span { color: var(--soft); }
.kv div b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; display: inline-flex; gap: 8px; align-items: center; }
.kv button { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--soft); }
.kv button:hover { background: rgb(255 255 255 / .08); color: var(--text); }
.kv button .ic { width: 15px; height: 15px; }
.fine { font-size: .875rem; line-height: 1.55; color: var(--soft); }
.tx div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; align-items: baseline; }
.tx div:last-child { border-bottom: 0; }
.tx time { font-size: .8125rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.tx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); }
.tx b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tx b.in { color: var(--ok); }
.login-stage { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.login-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(6 8 12 / .42); }
.login { width: min(480px, 100%); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 34px 32px 30px; }
.login h1 { font: 600 clamp(1.5rem, 3vw, 1.875rem)/1.2 var(--f-display); letter-spacing: -.02em; margin: 0 0 10px; }
.login ol { margin: 24px 0; padding: 0 0 0 1.3em; color: var(--text); }
.login ol li { padding: 6px 0 6px 6px; }
.login ol li::marker { color: var(--ice); font-weight: 600; }
.login code { font-family: ui-monospace, Consolas, monospace; background: rgb(255 255 255 / .1); padding: 2px 7px; border-radius: 6px; font-size: .9375rem; }
.login a.tg { color: var(--ice); font-weight: 600; }
.login a.tg:hover { text-decoration: underline; }
details.alt { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; color: var(--soft); font-size: .9375rem; }
details.alt summary { cursor: pointer; }
details.alt form { display: flex; gap: 8px; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- man nho */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .top { display: flex; position: sticky; top: 0; z-index: 20; height: var(--top-h); align-items: center; gap: 10px; padding: 0 16px; background: rgb(6 8 12 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .top .brand { padding: 0; }
  .top .sp { flex: 1; }
  .top .pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgb(255 255 255 / .08); font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; }
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgb(8 11 16 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .75rem; font-weight: 500; color: var(--faint); }
  .tabs a.on { color: var(--text); }
  main { padding-bottom: calc(var(--tab-h) + 8px); }
  .wrap { padding: 0 16px; }
  .stage { padding: 28px 14px 28px; min-height: 0; }
  .stage .lede { font-size: 1rem; margin-bottom: 22px; }
  .cmp-top { flex-direction: column; gap: 8px; }
  .refs { max-width: none; }
  .add, .thumb { width: 56px; height: 56px; }
  .cmp-input { width: 100%; min-height: 110px; font-size: 1rem; }
  .cost { margin-left: auto; }
  .jobs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .masonry { columns: 2 150px; column-gap: 10px; }
  .masonry > * { margin-bottom: 10px; }
  .shot .cap span { display: none; }
  .wallet { grid-template-columns: 1fr; }
  .sheet .box { grid-template-columns: 1fr; }
  .sheet .side { border-left: 0; border-top: 1px solid var(--line); }
  .login { padding: 26px 20px 24px; }
}
@media (max-width: 560px) {
  .qr { grid-template-columns: 1fr; }
  table.fare th, table.fare td { padding: 12px 10px; font-size: .875rem; }
  .tx div { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .panel { padding: 20px 16px; }
  .btn.send span { display: none; }
}

.job .top { flex-wrap: wrap; row-gap: 4px; }

/* ---------- hieu ung (admin 16/11): den theo chuot, nen troi 3D nhe, vien sang theo chuot */
.cursor-light { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 15; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgb(143 227 242 / .085), rgb(143 227 242 / .03) 38%, transparent 64%); mix-blend-mode: screen; will-change: transform; }
.cursor-light.on { opacity: 1; }
.stage { overflow: hidden; perspective: 1400px; }
.stage-bg { inset: -5%; width: 110%; height: 110%; will-change: transform; transform: scale(1.04); }
.stars { position: absolute; inset: -4%; width: 108%; height: 108%; z-index: -1; pointer-events: none; will-change: transform; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 24%), rgb(200 238 255 / .17), transparent 66%); }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 2;
  background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgb(143 227 242 / .9), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glow:hover::before { opacity: 1; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 1;
  background: radial-gradient(340px circle at var(--mx, -999px) var(--my, -999px), rgb(143 227 242 / .07), transparent 62%); }
.glow:hover::after { opacity: 1; }
.shot.glow::after, .composer.glow::after { display: none; }
.rise { animation: rise .6s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.job, .tile, .shot { transition: transform .25s var(--ease), border-color .2s; }
.job:hover, .tile:hover { transform: translateY(-3px); }

/* ---------- dau trang con co anh, bang gia theo the model, the vi */
.phead { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 30px; }
.phead-bg { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; object-position: 50% 42%; z-index: -2; will-change: transform; }
.phead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgb(6 8 12 / .82) 0%, rgb(6 8 12 / .35) 55%, rgb(6 8 12 / .15) 100%), linear-gradient(to bottom, rgb(6 8 12 / 0) 40%, var(--bg) 100%); }
.phead-in { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.phead h1 { font: 600 clamp(1.75rem, 3.2vw, 2.5rem)/1.12 var(--f-display); letter-spacing: -.02em; }
.phead p { margin-top: 10px; color: #d3deea; max-width: 58ch; text-shadow: 0 1px 8px rgb(6 8 12 / .8); }
.page.tight { padding-top: 14px; }
.mtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.mtile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); min-height: 148px; padding: 14px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; transition: transform .25s var(--ease), border-color .2s; }
.mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease), filter .3s; filter: saturate(.75) brightness(.7); }
.mtile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(6 8 12 / .9) 8%, rgb(6 8 12 / .1) 70%); }
.mtile:hover { transform: translateY(-3px); }
.mtile:hover img, .mtile.on img { transform: scale(1.06); filter: none; }
.mtile.on { border-color: var(--ice); box-shadow: inset 0 0 0 1px var(--ice); }
.mtile b { font: 600 1rem/1.25 var(--f-display); letter-spacing: -.01em; }
.mtile span { font-size: .8125rem; color: #cfdae6; }
.mtile i { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--ion-2); margin-top: 4px; }
table.fare td button { font: inherit; font-weight: 500; font-variant-numeric: tabular-nums; padding: 6px 12px; margin: -6px -12px; border-radius: 999px; transition: background .15s, color .15s; }
table.fare td button:hover { background: var(--ion); color: var(--on-ion); }
.cardx { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-l); border: 1px solid var(--line-2); aspect-ratio: 1.7; max-width: 460px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d; transition: transform .2s var(--ease); will-change: transform; }
.cardx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cardx .veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgb(6 8 12 / .72), rgb(6 8 12 / .2) 60%), radial-gradient(360px circle at var(--mx, 70%) var(--my, 20%), rgb(220 245 255 / .22), transparent 60%); }
.cardx .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cardx .bal { margin: 0; }
.cardx small { font-size: .8125rem; color: #d3deea; }
.wallet2 { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 22px; align-items: start; }
.wallet2 .left { display: flex; flex-direction: column; gap: 22px; }
.amts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amts button { min-height: 52px; border-radius: var(--r); border: 1px solid var(--line-2); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s, transform .12s var(--ease); }
.amts button:hover { border-color: rgb(190 220 255 / .4); transform: translateY(-2px); }
.amts button.on { background: var(--ice-bg); border-color: var(--ice); }
.tx2 .day { font-size: .8125rem; font-weight: 600; color: var(--faint); padding: 16px 0 6px; }
.tx2 .day:first-child { padding-top: 0; }
.tx2 .rowx { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.tx2 .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .06); color: var(--soft); }
.tx2 .dot.in { background: rgb(98 216 163 / .14); color: var(--ok); }
.tx2 .rowx b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tx2 .rowx b.in { color: var(--ok); }
.tx2 .rowx span { display: block; font-size: .9375rem; }
.tx2 .rowx small { font-size: .8125rem; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .phead { padding: 44px 0 22px; }
  .mtiles { grid-template-columns: 1fr 1fr; }
  .wallet2 { grid-template-columns: 1fr; }
  .cursor-light { display: none; }
}

.login-stage { overflow: hidden; perspective: 1400px; }
.login-stage .stars { z-index: -1; }

.stage-bg, .phead-bg { max-width: none; }
.phead-in { max-width: 964px; margin: 0; }

/* ---------- 16/11 (admin): tong tim xanh theo anh dai dien cua bot, bo mau cam; anh nen phu suot trang; den chuot nho lai */
:root { --ion: #7c5cff; --ion-2: #9579ff; --on-ion: #ffffff; --ice: #b6c0ff; --ice-bg: rgb(150 160 255 / .15); --bg: #07080f; --bg-2: #0d0f1a; --bg-3: #141729; }
html { scrollbar-color: #2c3050 var(--bg); }
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.backdrop img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; will-change: transform; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: rgb(7 8 15 / .5); }
body { background: var(--bg); }
.rail { background: rgb(9 10 20 / .66); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); }
.stage::after { background: linear-gradient(to bottom, rgb(7 8 15 / .55) 0%, rgb(7 8 15 / .28) 26%, rgb(7 8 15 / 0) 46%); }
.stage-bg { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); }
.phead::after { background: linear-gradient(to right, rgb(7 8 15 / .8) 0%, rgb(7 8 15 / .32) 55%, rgb(7 8 15 / .12) 100%); }
.phead-bg { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); mask-image: linear-gradient(to bottom, #000 55%, transparent 98%); }
.job, .panel, table.fare, .tile, .wallet-card, .empty { background: rgb(13 15 27 / .66); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.composer { background: rgb(13 15 28 / .6); }
.login { background: rgb(13 15 28 / .62); }
.top, .tabs { background: rgb(9 10 20 / .8); }
.field { background: rgb(13 15 27 / .7); }
.cursor-light { width: 150px; height: 150px; margin: -75px 0 0 -75px; background: radial-gradient(circle, rgb(205 200 255 / .13), rgb(205 200 255 / .04) 46%, transparent 70%); }
.stage::before { background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 24%), rgb(215 210 255 / .11), transparent 70%); }
.glow::before { background: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), rgb(196 188 255 / .85), transparent 62%); }
.glow::after { background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgb(160 150 255 / .07), transparent 62%); }
.seg button.on, .chip[aria-expanded="true"], .chip.on, .models button.on { border-color: rgb(170 180 255 / .6); }
.amts button.on, .mtile.on { border-color: var(--ice); }
.mtile.on { box-shadow: inset 0 0 0 1px var(--ice); }
.job .media.busy::before { background-image: linear-gradient(100deg, transparent 30%, rgb(170 165 255 / .1) 50%, transparent 70%); }
.cardx .veil { background: linear-gradient(120deg, rgb(7 8 15 / .72), rgb(7 8 15 / .2) 60%), radial-gradient(300px circle at var(--mx, 70%) var(--my, 20%), rgb(225 220 255 / .2), transparent 60%); }
.brand img.logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px rgb(182 192 255 / .55); }
.wallet-card i, .mtile i { color: #c3b6ff; }
.block-h a, .login a.tg { color: var(--ice); }
.shot .cap span { color: #fff; }
footer.ft { border-top-color: var(--line); }

/* anh nen thanh pho tim phu CA trang (co dinh), moi khoi noi dung la kinh mo dat len tren */
.backdrop img { object-position: 50% 38%; }
.backdrop::after { background: linear-gradient(to bottom, rgb(7 8 15 / .30) 0%, rgb(7 8 15 / .46) 38%, rgb(7 8 15 / .64) 100%); }
.stage-bg.ghost { display: none; }
.stage::after { display: none; }
.login-stage::after { background: rgb(7 8 15 / .28); }
.phead { padding: 56px 0 26px; }
.phead-bg, .phead::after { display: none; }
.stars { inset: 0; width: 100%; height: 100%; }
.shot, .mtile { box-shadow: 0 10px 30px -18px rgb(0 0 0 / .8); }

.composer { background: rgb(12 13 26 / .76); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }

/* ---------- 16/11: anh nen rieng tung muc (chuyen mo), bui sang, trang tai khoan, dang nhap Telegram, chi tiet nho */
.backdrop img { transition: opacity .9s ease; }
.backdrop img.out { opacity: 0; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28), transparent); transition: left .6s var(--ease); pointer-events: none; }
.btn.primary:hover::after { left: 120%; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.acct { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.who { display: flex; align-items: center; gap: 14px; }
.who .ava { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 600 1.375rem/1 var(--f-display); background: var(--ion); color: #fff; flex: none; }
.who b { display: block; font-size: 1.0625rem; font-weight: 600; }
.who small { font-size: .8125rem; color: var(--faint); }
.krow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.krow .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ice-bg); color: var(--ice); }
.krow span { display: block; font-weight: 600; font-size: .9375rem; }
.krow small { font-size: .8125rem; color: var(--faint); overflow-wrap: anywhere; }
.newkey { border: 1px solid rgb(170 180 255 / .5); background: var(--ice-bg); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.newkey b { display: block; margin-bottom: 4px; }
.keyline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.keybox { flex: 1 1 260px; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: .875rem; background: rgb(0 0 0 / .35); border-radius: var(--r-s); padding: 10px 12px; overflow-wrap: anywhere; user-select: all; }
.lnk { color: var(--ice); font-weight: 500; }
.lnk:hover { text-decoration: underline; }
.tgwait { margin-top: 16px; border: 1px solid rgb(170 180 255 / .45); background: var(--ice-bg); border-radius: var(--r); padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tgwait small { color: var(--soft); font-size: .8125rem; }
.tgwait .pin { font: 600 2.75rem/1 var(--f-display); letter-spacing: .08em; }
.tgwait .fine { max-width: 36ch; }
@media (max-width: 900px) { .acct { grid-template-columns: 1fr; } }

/* ---------- 16/11 (admin): menu sang hon, logo khong don dieu, kinh va chuyen dong kieu iOS */
:root { --r-s: 10px; --r: 16px; --r-l: 24px; --spring: cubic-bezier(.3, 1.35, .5, 1); }
.app { grid-template-columns: calc(var(--rail) + 24px) minmax(0, 1fr); }
.rail { margin: 12px; top: 12px; height: calc(100vh - 24px); border-radius: 26px; border: 1px solid rgb(255 255 255 / .11);
  background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .025)), rgb(12 13 28 / .46);
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 -1px 0 rgb(0 0 0 / .3), 0 24px 60px -24px rgb(0 0 0 / .75); }
.rail nav { position: relative; gap: 4px; }
.rail nav a { position: relative; z-index: 1; border-radius: 14px; padding: 11px 13px; }
.rail nav a:hover { background: rgb(255 255 255 / .06); }
.rail nav a.on { background: none; color: #fff; }
.rail nav a.on .ic { color: #d6ceff; filter: drop-shadow(0 0 6px rgb(160 140 255 / .9)); }
.nav-ind { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 14px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(124 92 255 / .46), rgb(90 150 255 / .16));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 0 0 1px rgb(190 180 255 / .22), 0 0 26px -4px rgb(124 92 255 / .7);
  transition: transform .5s var(--spring), height .3s var(--ease), opacity .3s; }
.logo-wrap { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.logo-wrap::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #7c5cff, #5ab4ff, #ff7ad9, #7c5cff); animation: spin 7s linear infinite; }
.logo-wrap::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: radial-gradient(circle, rgb(124 92 255 / .45), transparent 70%); z-index: -1; }
.brand img.logo { position: relative; width: 29px; height: 29px; box-shadow: 0 0 0 1.5px #0b0c18; }
@keyframes spin { to { transform: rotate(360deg); } }
.wm { font: 600 1rem/1 var(--f-display); letter-spacing: -.02em; color: #fff; }
.wm em { font-style: normal; margin-left: .32em; background: linear-gradient(100deg, #b9a8ff 0%, #7fc4ff 45%, #ff9be2 80%, #b9a8ff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wm 6s ease-in-out infinite; }
@keyframes wm { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.job, .panel, table.fare, .tile, .wallet-card, .empty, .composer, .login, .sheet .box, .tgwait, .newkey {
  background: linear-gradient(180deg, rgb(255 255 255 / .085), rgb(255 255 255 / .025)), rgb(14 15 32 / .5);
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgb(255 255 255 / .11);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .17), inset 0 -1px 0 rgb(0 0 0 / .28), 0 20px 48px -24px rgb(0 0 0 / .75); }
.composer { background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(255 255 255 / .03)), rgb(12 13 28 / .62); }
.chip, .seg button, .amts button { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); transition: background .15s var(--ease), border-color .15s var(--ease), transform .25s var(--spring); }
.chip:active, .seg button:active, .amts button:active, .btn:active { transform: scale(.95); }
.btn { transition: background .15s var(--ease), border-color .15s var(--ease), transform .25s var(--spring); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); }
.btn.primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 10px 26px -10px rgb(124 92 255 / .8); }
main > * { animation: pagein .55s var(--ease) backwards; }
@keyframes pagein { from { opacity: 0; transform: translateY(20px) scale(.985); filter: blur(8px); } }
.cmp-tray:not(.hide) { animation: trayin .4s var(--spring); transform-origin: top; }
@keyframes trayin { from { opacity: 0; transform: translateY(-8px) scaleY(.92); } }
.toast { background: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / .08)), rgb(30 30 60 / .7); color: #fff; border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); animation: toastin .45s var(--spring); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 18px) scale(.94); } }
.sheet { animation: fadein .25s ease; }
.sheet .box { animation: sheetin .45s var(--spring); }
@keyframes fadein { from { opacity: 0; } }
@keyframes sheetin { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.wallet-card { border-radius: 18px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .tabs { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 62px; padding-bottom: 0; border-radius: 28px; border: 1px solid rgb(255 255 255 / .13);
    background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .04)), rgb(12 13 28 / .55); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 16px 40px -16px rgb(0 0 0 / .8); }
  .tabs a.on { color: #fff; }
  .tabs a.on .ic { color: #d6ceff; filter: drop-shadow(0 0 6px rgb(160 140 255 / .9)); }
  main { padding-bottom: 92px; }
  .top { background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02)), rgb(10 11 24 / .6); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); }
}

@keyframes pagein { from { opacity: 0; transform: translateY(20px) scale(.985); } }
.login-stage { animation: none; }
.login-stage .login { animation: sheetin .5s var(--spring) backwards; }

/* ---------- 16/11 lan 4: logo khong tran, the don gon, bao loi sach, nut chon cau hinh dac va gon, bang gia dang the lon */
:root { --rail: 256px; }
.brand { gap: 9px; padding: 6px 8px 18px; }
.wm { font-size: .9375rem; white-space: nowrap; }
.job .jtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 4px; }
.job .jtop b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.job .jtop b.back { color: var(--faint); text-decoration: line-through; font-weight: 500; }
.fail { border-radius: 14px; padding: 12px 13px; background: rgb(255 120 110 / .08); border: 1px solid rgb(255 129 119 / .22); display: flex; flex-direction: column; gap: 6px; }
.fail .fhead { display: flex; align-items: center; gap: 8px; color: #ffb1aa; }
.fail .fhead b { font-weight: 600; font-size: .9375rem; }
.fail p { font-size: .875rem; color: var(--soft); }
.fail .refund { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .8125rem; font-weight: 600; color: var(--ok); background: rgb(98 216 163 / .12); border-radius: 999px; padding: 5px 10px 5px 8px; }
.fail .refund .ic { width: 15px; height: 15px; }
.fail details { font-size: .8125rem; color: var(--faint); overflow-wrap: anywhere; }
.fail details summary { cursor: pointer; color: var(--soft); }
.stage { overflow: visible; }
.composer { position: relative; z-index: 6; }
.cmp-bar { gap: 6px; padding: 10px 12px 12px; }
.chip { min-height: 38px; padding: 0 10px 0 9px; gap: 7px; border-radius: 11px; background: rgb(255 255 255 / .075); border: 1px solid rgb(255 255 255 / .09); font-size: .875rem; font-weight: 600; letter-spacing: -.005em; }
.chip:hover { background: rgb(255 255 255 / .13); border-color: rgb(255 255 255 / .18); }
.chip .ic { width: 16px; height: 16px; color: #c8c0ff; }
.chip .cv { width: 13px; height: 13px; color: var(--faint); transition: transform .3s var(--spring); }
.chip[aria-expanded="true"] { background: rgb(124 92 255 / .28); border-color: rgb(170 160 255 / .7); box-shadow: 0 0 0 3px rgb(124 92 255 / .18), inset 0 1px 0 rgb(255 255 255 / .18); }
.chip[aria-expanded="true"] .cv { transform: rotate(180deg); color: #fff; }
.chip.on { background: rgb(255 255 255 / .075); border-color: rgb(255 255 255 / .09); }
.chip .sw { width: 30px; height: 18px; border-radius: 9px; background: rgb(255 255 255 / .16); position: relative; display: block; transition: background .25s; }
.chip .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); box-shadow: 0 1px 3px rgb(0 0 0 / .4); }
.chip.on .sw { background: var(--ion); }
.chip.on .sw::after { transform: translateX(12px); }
.btn.send { border-radius: 14px; min-height: 46px; padding: 0 20px; background: linear-gradient(180deg, #8f72ff, #6a48f5); border-color: rgb(190 175 255 / .5); }
.cmp-tray { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; border-top: 0; border-radius: 20px; padding: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .03)), rgb(14 15 34 / .82); border: 1px solid rgb(255 255 255 / .13);
  -webkit-backdrop-filter: blur(34px) saturate(1.8); backdrop-filter: blur(34px) saturate(1.8); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 30px 70px -20px rgb(0 0 0 / .85); }
.cmp-tray .lb { margin-bottom: 12px; color: var(--soft); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.opts.two { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 13px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .05); transition: background .15s, border-color .15s, transform .25s var(--spring); }
.opt:hover { background: rgb(255 255 255 / .1); transform: translateY(-2px); }
.opt:active { transform: scale(.96); }
.opt.on { background: rgb(124 92 255 / .26); border-color: rgb(170 160 255 / .75); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16); }
.opt b { font: 600 1.0625rem/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.opt span { font-size: .8125rem; color: var(--soft); line-height: 1.35; }
.opt i { font-style: normal; font-size: .875rem; font-weight: 600; color: #cfc6ff; font-variant-numeric: tabular-nums; margin-top: 4px; }
.opt .shape { height: 34px; display: grid; place-items: center start; color: #cfc6ff; margin-bottom: 4px; }
.fare-box { max-width: 980px; }
.durbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.durlb { font: 600 1.0625rem/1 var(--f-display); letter-spacing: -.01em; }
.steps { display: flex; gap: 0; padding: 5px; border-radius: 18px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); flex-wrap: wrap; }
.steps button { min-width: 62px; min-height: 46px; padding: 0 12px; border-radius: 13px; display: inline-flex; align-items: baseline; justify-content: center; gap: 1px; color: var(--soft); transition: background .2s, color .2s, transform .25s var(--spring); }
.steps button b { font: 600 1.25rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.steps button span { font-size: .8125rem; }
.steps button:hover { color: #fff; }
.steps button.on { background: linear-gradient(180deg, #8f72ff, #6a48f5); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 22px -8px rgb(124 92 255 / .9); }
.rescards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.rescard { position: relative; cursor: pointer; border-radius: var(--r-l); padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, rgb(255 255 255 / .085), rgb(255 255 255 / .025)), rgb(14 15 32 / .5); border: 1px solid rgb(255 255 255 / .11);
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: inset 0 1px 0 rgb(255 255 255 / .17), 0 20px 48px -24px rgb(0 0 0 / .75);
  transition: transform .3s var(--spring), border-color .2s, background .2s; }
.rescard:hover { transform: translateY(-4px); }
.rescard.on { border-color: rgb(170 160 255 / .8); background: linear-gradient(180deg, rgb(124 92 255 / .34), rgb(124 92 255 / .08)), rgb(14 15 32 / .5); }
.rescard em { position: absolute; top: -11px; left: 20px; font-style: normal; font-size: .75rem; font-weight: 600; background: linear-gradient(90deg, #8f72ff, #5ab4ff); color: #fff; border-radius: 999px; padding: 4px 10px; }
.rescard .rname { font: 600 2rem/1 var(--f-display); letter-spacing: -.03em; }
.rescard .rnote { font-size: .875rem; color: var(--soft); }
.rescard .rprice { font: 600 clamp(2rem, 3.4vw, 2.75rem)/1.05 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 18px; }
.rescard .rper { font-size: .8125rem; color: var(--faint); margin-bottom: 18px; }
.rescard .btn { margin-top: auto; }
.allfares { margin-top: 22px; }
.allfares summary { cursor: pointer; color: var(--ice); font-weight: 500; margin-bottom: 14px; }
table.fare .hl { background: rgb(124 92 255 / .12); }
table.fare tr.hl td.hl button { background: var(--ion); color: #fff; }
@media (max-width: 900px) {
  .cmp-tray { top: calc(100% + 8px); }
  .steps button { min-width: 52px; min-height: 42px; }
  .rescard .rname { font-size: 1.625rem; }
}

.steps button { align-items: center; }
.steps button span { align-self: flex-end; padding-bottom: 12px; }
.steps button b { line-height: 46px; }
@media (max-width: 900px) { .steps button b { line-height: 42px; } .steps button span { padding-bottom: 10px; } }

/* ---------- 16/11: trang Tao anh va Nang net */
.cmp-wrap { max-width: 940px; }
.imjobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.imjobs .empty { grid-column: 1 / -1; }
.imgrid { display: grid; gap: 3px; background: #000; }
.imgrid.n2, .imgrid.n3, .imgrid.n4 { grid-template-columns: 1fr 1fr; }
.imgrid a { display: block; overflow: hidden; }
.imgrid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .5s var(--ease); }
.imgrid.n1 img { aspect-ratio: auto; }
.imgrid a:hover img { transform: scale(1.04); }
.dropzone { max-width: 940px; min-height: 240px; border-radius: var(--r-l); border: 1.5px dashed rgb(190 180 255 / .4); padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .025)), rgb(14 15 32 / .5); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); transition: border-color .2s, background .2s; }
.dropzone.over { border-color: var(--ice); background: rgb(124 92 255 / .22); }
.dropzone > .ic { width: 34px; height: 34px; color: #cfc6ff; }
.dropzone > b { font: 600 1.25rem/1.2 var(--f-display); letter-spacing: -.01em; }
.dropzone > span { color: var(--soft); font-size: .9375rem; margin-bottom: 8px; }
.dropzone:has(.preview) { flex-direction: row; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 24px; border-style: solid; border-color: rgb(255 255 255 / .11); flex-wrap: wrap; }
.preview { width: min(360px, 100%); max-height: 360px; border-radius: 14px; background: #000; }
.upside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.upside > b { font-weight: 600; overflow-wrap: anywhere; }
.upside > span { color: var(--soft); font-size: .875rem; font-variant-numeric: tabular-nums; }
.upprog { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .12); overflow: hidden; }
.upprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8f72ff, #5ab4ff); transition: width .2s; }

/* ---------- 16/11 lan 5: den chuot nho han, nut xem lon cho video */
.cursor-light { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: radial-gradient(circle, rgb(215 210 255 / .12), rgb(215 210 255 / .03) 50%, transparent 72%); }
.stage::before { background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 24%), rgb(220 215 255 / .08), transparent 72%); }
.glow::before { background: radial-gradient(130px circle at var(--mx, -999px) var(--my, -999px), rgb(200 192 255 / .85), transparent 64%); }
.glow::after { background: radial-gradient(150px circle at var(--mx, -999px) var(--my, -999px), rgb(160 150 255 / .06), transparent 64%); }
.cardx .veil { background: linear-gradient(120deg, rgb(7 8 15 / .72), rgb(7 8 15 / .2) 60%), radial-gradient(170px circle at var(--mx, 70%) var(--my, 20%), rgb(225 220 255 / .16), transparent 62%); }
.job .media .expand { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; z-index: 3;
  background: rgb(10 10 22 / .62); border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s, transform .25s var(--spring); }
.job .media:hover .expand, .job .media .expand:focus-visible { opacity: 1; }
.job .media .expand:hover { transform: scale(1.08); background: var(--ion); }
@media (hover: none) { .job .media .expand { opacity: 1; } }
.sheet.viewer { padding: 0; }
.sheet.viewer video { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 14px; background: #000; animation: sheetin .4s var(--spring); }
.vclose, .vfull { position: fixed; top: 16px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgb(20 20 40 / .7); border: 1px solid rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.vclose { right: 16px; }
.vfull { right: 70px; }
.vclose:hover, .vfull:hover { background: var(--ion); }

/* ---------- 16/11 lan 6: chu tren the model ro hon, thanh hoat dong that, loi vao ho tro */
.mtile { min-height: 164px; padding: 16px; }
.mtile img { filter: saturate(.8) brightness(.55); }
.mtile:hover img, .mtile.on img { filter: saturate(1) brightness(.7); }
.mtile::after { background: linear-gradient(to top, rgb(6 7 16 / .97) 0%, rgb(6 7 16 / .86) 38%, rgb(6 7 16 / .35) 72%, rgb(6 7 16 / .1) 100%); }
.mtile b { font-size: 1.0625rem; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .9), 0 0 14px rgb(0 0 0 / .7); }
.mtile span { color: #eef1f8; font-size: .875rem; font-weight: 500; text-shadow: 0 1px 3px rgb(0 0 0 / .9); }
.mtile i { color: #fff; font-size: .8125rem; font-weight: 700; background: rgb(124 92 255 / .9); border-radius: 999px; padding: 4px 9px; align-self: flex-start; margin-top: 8px; }
.ticker { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; padding: 12px 0; border-top: 1px solid rgb(255 255 255 / .08); border-bottom: 1px solid rgb(255 255 255 / .08);
  background: rgb(10 11 24 / .5); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
.tk-head { flex: none; padding-left: 28px; font: 600 .8125rem/1 var(--f-display); color: var(--soft); letter-spacing: -.01em; white-space: nowrap; }
.tk-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: flex; gap: 10px; width: max-content; animation: tkrun 80s linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
@keyframes tkrun { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; white-space: nowrap; font-size: .8125rem;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); }
.tk > .ic { width: 15px; height: 15px; color: #c8c0ff; }
.tk b { font-weight: 600; }
.tk i { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; }
.tk em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; font-variant-numeric: tabular-nums; }
.tk em .ic { width: 14px; height: 14px; }
.ghost.support { margin: 0 0 8px; color: #d6ceff; }
@media (max-width: 900px) { .tk-head { display: none; } .ticker { margin: 0; } }
@media (prefers-reduced-motion: reduce) { .tk-view { overflow-x: auto; } }

.ticker:hover .tk-track { animation-play-state: running; }

.tk u { text-decoration: none; color: #d6ceff; font-weight: 600; }
.backdrop img { inset: -6%; width: 112%; height: 112%; }

/* ---------- 16/11 lan 7: nut Tao khong nhay xuong dong; nen khong nhay ti le */
.cmp-bar { flex-wrap: nowrap; align-items: flex-end; gap: 12px; }
.cmp-bar .chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.cmp-bar .go { display: flex; align-items: center; gap: 10px; flex: none; }
.cmp-bar .go .cost { margin: 0; }
.backdrop img { transform: scale(1.06); }
.job, .panel, table.fare, .tile, .wallet-card, .empty, .login, .sheet .box, .tgwait, .newkey, .rescard, .dropzone { -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
@media (max-width: 640px) {
  .cmp-bar { flex-wrap: wrap; }
  .cmp-bar .go { width: 100%; justify-content: space-between; }
}

.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.add small { font-size: .6875rem; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.cmp-refnote { display: flex; gap: 8px; align-items: flex-start; padding: 2px 16px 6px; font-size: .8125rem; line-height: 1.5; color: #c9d2e0; }
.cmp-refnote .ic { width: 15px; height: 15px; margin-top: 2px; color: #c8c0ff; }

/* ---------- 16/11 lan 8: dong ghi ro quy dinh anh tham chieu ngay trong khung soan */
.cmp-refnote { display: flex; align-items: flex-start; gap: 8px; margin: 0 16px 2px; padding: 9px 12px; border-radius: 12px; font-size: .8125rem; line-height: 1.5; color: #d5dcea;
  background: rgb(255 255 255 / .045); border: 1px solid rgb(255 255 255 / .07); }
.cmp-refnote .ic { width: 15px; height: 15px; margin-top: 2px; color: #c8c0ff; }
@media (max-width: 640px) { .cmp-refnote { margin: 0 12px 2px; } }

/* ---------- 16/11 lan 9: tham chieu dung quy dinh API (30 anh, 3 video, 3 am thanh) */
.refs { max-width: 304px; max-height: 148px; overflow-y: auto; scrollbar-width: thin; }
.thumb.media { display: grid; place-items: center; cursor: pointer; color: #d6ceff; background: rgb(124 92 255 / .2); }
.thumb.media > .ic { width: 22px; height: 22px; margin-bottom: 12px; }

/* ---------- 16/11 lan 10: LOI nen "khung roi phong to" khi re chuot.
   Nguyen nhan: lop sao trong khung dau trang truot ngang theo chuot va tran ra ngoai mep phai -> trang hien thanh cuon ngang ->
   chieu cao vung nhin giam 15px -> anh nen co dinh (phu kin vung nhin) bi tinh lai kich thuoc = "phong to". Chan tran ngang la het. */
html, body { overflow-x: clip; }
.stage { overflow-x: clip; overflow-y: visible; }
main { overflow-x: clip; }

/* ---------- 16/11 lan 11: menu co nhip dieu (admin: "deu deu ma chan"): nhom co tieu de, o bieu tuong mau rieng, nhan Moi; cua so lua chon noi tren thanh chay ngang */
.rail nav { gap: 2px; }
.rail nav .grp { font: 600 .6875rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 7px; }
.rail nav .grp:first-child { padding-top: 2px; }
.rail nav a { gap: 11px; padding: 7px 10px 7px 8px; border-radius: 14px; color: #c9d1e2; transition: color .15s, transform .3s var(--spring), background .15s; }
.rail nav a:hover { transform: translateX(3px); color: #fff; }
.rail nav a .ich { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--hue);
  background: color-mix(in srgb, var(--hue) 18%, transparent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 0 0 1px color-mix(in srgb, var(--hue) 28%, transparent);
  transition: background .2s, color .2s, transform .3s var(--spring); }
.rail nav a:hover .ich { transform: scale(1.08) rotate(-4deg); }
.rail nav a .ich .ic { width: 17px; height: 17px; }
.rail nav a.on .ich { background: var(--hue); color: #0b0c18; box-shadow: 0 6px 16px -6px var(--hue), inset 0 1px 0 rgb(255 255 255 / .5); }
.rail nav a.on .ic { color: #0b0c18; filter: none; }
.rail nav a .lbl { flex: 1; min-width: 0; font-weight: 500; }
.rail nav a.on .lbl { font-weight: 600; color: #fff; }
.rail nav a .bdg { font-size: .6875rem; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, #8f72ff, #5ab4ff); }
.nav-ind { background: linear-gradient(90deg, rgb(255 255 255 / .13), rgb(255 255 255 / .04)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 1px rgb(255 255 255 / .1); }
.stage { z-index: 6; }
.ticker { position: relative; z-index: 1; }

/* ---------- 16/11 lan 12: kinh mo dong deu moi trang, hop chon bam duoc tren man hep, video dung nut toan man hinh goc */
.stage { overflow: visible; perspective: none; }          /* overflow-x: clip cat ca vung bam theo chieu doc (hop chon tho ra ngoai khung tren man hep) */
.login-stage { perspective: none; }
@keyframes pagein { from { transform: translateY(14px); } }   /* chi truot: lam mo dan (opacity) o khoi cha lam kinh trong suot roi moi mo */
.composer .cmp-tray { background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)), rgb(16 17 35 / .97); }   /* kinh long trong kinh khong mo duoc: dung nen dac */
.cmp-refnote .over { color: #ffb4c4; font-weight: 600; }

/* ---------- 16/11 lan 13: thanh tren man hep: chu logo khong duoc day nut ngon ngu ra ngoai (admin: "nut ngon ngu bi mat") */
@media (max-width: 860px) {
  .top { gap: 8px; }
  .top .brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .top .pill, .top .ghost, .top button { flex-shrink: 0; }
}
@media (max-width: 480px) { .top .wm { font-size: .8125rem; } .top .ghost { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 400px) { .top .wm { display: none; } }

/* ---------- 16/11 lan 14: menu trong hon (thay anh nen phia sau) + nut thu gon thanh cot bieu tuong */
.rail { background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .015)), rgb(12 13 30 / .2);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border-color: rgb(255 255 255 / .14); width: var(--rail); box-sizing: border-box; transition: width .35s var(--ease), padding .35s var(--ease); }
.rail nav a, .rail nav .grp, .rail .wm, .rail .support, .rail-foot { text-shadow: 0 1px 10px rgb(4 5 14 / .85); }
.rail .wallet-card { background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .03)), rgb(14 15 34 / .32); -webkit-backdrop-filter: none; backdrop-filter: none; }
.app { transition: grid-template-columns .35s var(--ease); }
.rail-tg { position: absolute; top: 22px; right: -13px; z-index: 5; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #e6e1ff;
  background: rgb(30 28 62 / .96); border: 1px solid rgb(255 255 255 / .22); box-shadow: 0 6px 16px -6px rgb(0 0 0 / .8); transition: transform .3s var(--spring), background .15s; }
.rail-tg .ic { width: 15px; height: 15px; transform: scaleX(-1); transition: transform .35s var(--ease); }
.rail-tg:hover { background: #7c5cff; transform: scale(1.1); }
.wallet-mini { display: none; }
.app.mini { --rail: 76px; }
.app.mini .rail { padding-left: 10px; padding-right: 10px; }
.app.mini .rail-tg .ic { transform: none; }
.app.mini .rail .wm, .app.mini .rail nav .lbl, .app.mini .rail nav .bdg, .app.mini .rail .wallet-card, .app.mini .rail .lbl, .app.mini .rail-foot small { display: none; }
.app.mini .rail .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.app.mini .rail nav .grp { font-size: 0; padding: 10px 0 6px; }
.app.mini .rail nav .grp::after { content: ""; display: block; height: 1px; margin: 0 8px; background: rgb(255 255 255 / .12); }
.app.mini .rail nav .grp:first-of-type { padding-top: 2px; }
.app.mini .rail nav a { justify-content: center; padding: 7px 0; }
.app.mini .rail nav a:hover { transform: none; }
.app.mini .wallet-mini { display: grid; place-items: center; height: 44px; border-radius: 14px; color: #6fe0ad; background: rgb(111 224 173 / .14); box-shadow: inset 0 0 0 1px rgb(111 224 173 / .25); }
.app.mini .rail .support, .app.mini .rail .btn.wide { justify-content: center; padding-left: 0; padding-right: 0; }
.app.mini .rail-foot { justify-content: center; padding-left: 0; padding-right: 0; }
/* ten muc hien ben canh khi menu thu gon */
.app.mini .rail [data-tip] { position: relative; }
.app.mini .rail [data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap; z-index: 40; pointer-events: none;
  padding: 7px 11px; border-radius: 10px; font: 500 .8125rem/1 var(--f-body); color: #fff; text-shadow: none; background: rgb(24 22 52 / .97); border: 1px solid rgb(255 255 255 / .16); box-shadow: 0 10px 24px -10px rgb(0 0 0 / .8); }

/* ---------- 16/11 lan 15: nut thu gon kieu ChatGPT/Claude (admin che nut tron lo ra mep "buon cuoi"):
   menu mo: bieu tuong manh nam trong hang logo ben phai; menu gon: re chuot vao logo thi logo doi thanh nut mo rong */
.rail-head { position: relative; display: flex; align-items: center; gap: 6px; min-height: 40px; }
.rail-head .brand { flex: 1; min-width: 0; transition: opacity .15s; }
.rail-tg { position: static; flex: none; width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; box-shadow: none; color: #b9c0d6; transform: none; transition: background .15s, color .15s, opacity .15s; }
.rail-tg .ic { width: 18px; height: 18px; transform: none; }
.rail-tg:hover { background: rgb(255 255 255 / .09); color: #fff; transform: none; }
.app.mini .rail-tg .ic { transform: none; }
.app.mini .rail-head { justify-content: center; }
.app.mini .rail-head .brand { flex: none; }
.app.mini .rail-tg { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: 0; pointer-events: none; background: rgb(255 255 255 / .1); color: #fff; }
.app.mini .rail-head:hover .rail-tg, .app.mini .rail-tg:focus-visible { opacity: 1; pointer-events: auto; }
.app.mini .rail-head:hover .brand { opacity: 0; }
/* 16/11 lan 15b: chu logo vua hang, khong de duoi nut thu gon */
.rail-head { margin-bottom: 12px; }
.rail-head .brand { padding: 6px 0 6px 2px; gap: 8px; }
.rail-head .wm { font-size: .875rem; white-space: nowrap; }

/* ---------- 16/11 lan 16: dang nhap 4 cach + lien ket tai khoan + trang phap ly + khung ten menu thu gon */
.authbtns { display: grid; gap: 10px; }
.authbtn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; font: 600 .9688rem/1 var(--f-body); color: #fff; text-align: left;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04)); border: 1px solid rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14);
  transition: background .15s, border-color .15s, transform .25s var(--spring); }
.authbtn:hover:not(.off) { background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .07)); border-color: rgb(255 255 255 / .26); transform: translateY(-1px); }
.authbtn[data-p="telegram"]:not(.off) { background: linear-gradient(180deg, rgb(41 169 235 / .32), rgb(41 169 235 / .16)); border-color: rgb(41 169 235 / .5); }
.authbtn.off { cursor: default; color: #9aa1b8; }
.authbtn.off .bico { filter: grayscale(.85); opacity: .55; }
.authbtn > span:not(.bico) { flex: 1; }
.authbtn em { font-style: normal; font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; color: #c9cde0; background: rgb(255 255 255 / .08); }
.bico { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.bico svg { width: 22px; height: 22px; }
.emailbox { margin-top: 12px; display: grid; gap: 10px; }
.row2 { display: flex; gap: 8px; }
.row2 .field { flex: 1; min-width: 0; }
.field.code6 { letter-spacing: .5em; font: 600 1.25rem/1 var(--f-body); text-align: center; font-variant-numeric: tabular-nums; }
.login .legal { margin-top: 16px; font-size: .8125rem; color: var(--faint); line-height: 1.5; }
.login .legal .lnk { color: #c9c0ff; }
.methods .mlist { display: grid; gap: 4px; }
.mrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / .07); }
.mrow:last-child { border-bottom: 0; }
.mrow b { display: block; font-weight: 600; }
.mrow small { display: block; color: var(--soft); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .bico { width: 26px; height: 26px; } .mrow .bico svg { width: 26px; height: 26px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 5px 9px; border-radius: 999px; color: #c9cde0; background: rgb(255 255 255 / .08); }
.tag.ok { color: #8ff0c2; background: rgb(111 224 173 / .14); }
.tag .ic { width: 13px; height: 13px; }
.legaldoc { max-width: 820px; }
.legaldoc h2 { font: 600 1.0625rem/1.3 var(--f-display); margin: 22px 0 8px; }
.legaldoc h2:first-child { margin-top: 0; }
.legaldoc p { color: #d3d8e6; line-height: 1.65; margin: 0 0 10px; }
.app.mini .rail [data-tip]:hover::after { display: none; }
.rtip { position: fixed; z-index: 90; left: 0; top: 0; transform: translate(-4px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 7px 11px; border-radius: 10px; font: 500 .8125rem/1 var(--f-body); color: #fff; background: rgb(24 22 52 / .97); border: 1px solid rgb(255 255 255 / .16);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / .8); transition: opacity .12s, transform .12s; }
.rtip.on { opacity: 1; transform: translate(0, -50%); }
/* 16/11 lan 16b: trang Tai khoan co 3 khung: ho so + cach dang nhap tren, khoa API trai rong ben duoi */
.acct { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.acct > section:nth-child(3) { grid-column: 1 / -1; }
@media (max-width: 900px) { .acct { grid-template-columns: 1fr; } .acct > section:nth-child(3) { grid-column: auto; } }

/* 16/11 lan 17: email + mat khau */
.emailbox .swmode { justify-self: center; background: none; border: 0; color: #c9c0ff; font-size: .875rem; cursor: pointer; padding: 2px; }
.emailbox .pwnote { margin: 0; text-align: center; }

/* 16/11 lan 18: nhan khung dau / khung cuoi */
.thumb .tg.fr { background: linear-gradient(90deg, #7c5cff, #5ab4ff); color: #fff; font-weight: 600; }

/* ---------- 16/11 lan 19: menu trai TRONG SUOT that (admin: "sao no blur du vay"): gan nhu khong lam mo, thay ro anh phia sau */
.rail { background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015)), rgb(10 10 26 / .14);
  -webkit-backdrop-filter: blur(3px) saturate(1.15); backdrop-filter: blur(3px) saturate(1.15); border-color: rgb(255 255 255 / .16); }
.rail nav a, .rail nav .grp, .rail .wm, .rail .support, .rail-foot, .rail .wallet-card { text-shadow: 0 1px 3px rgb(4 5 14 / .95), 0 0 14px rgb(4 5 14 / .8); }
.rail .wallet-card { background: rgb(14 15 34 / .22); border-color: rgb(255 255 255 / .14); }
.rail nav a:hover { background: rgb(255 255 255 / .08); }

/* ---------- 16/11 lan 20: menu trai gon hon (admin: "thanh menu hoi dai qua") */
.rail { padding: 14px 10px 12px; gap: 2px; }
.rail-head { margin-bottom: 4px; min-height: 36px; }
.rail nav { gap: 0; }
.rail nav .grp { padding: 10px 10px 3px; font-size: .625rem; }
.rail nav .grp:first-of-type { padding-top: 0; }
.rail nav a { padding: 5px 8px 5px 6px; gap: 10px; font-size: .875rem; }
.rail nav a .ich { width: 28px; height: 28px; border-radius: 9px; }
.rail nav a .ich .ic { width: 15px; height: 15px; }
.rail .wallet-card { padding: 10px 12px; border-radius: 14px; }
.rail .wallet-card span { font-size: .75rem; }
.rail .wallet-card b { font-size: 1.0625rem; margin: 0 0 4px; }
.rail .support { padding-top: 6px; padding-bottom: 6px; font-size: .875rem; }
.rail-foot { padding-top: 4px; }
.rail-foot small { opacity: .6; }
.app.mini .rail nav a { padding: 5px 0; }
/* 16/11 lan 20b: khung menu chi cao vua noi dung (khong keo het man hinh); chu Studio sang hon tren nen trong suot */
.rail { height: auto; max-height: calc(100vh - 24px); align-self: start; overflow-y: auto; scrollbar-width: none; }
.rail .sp { flex: 0 0 14px; }
.rail .wm em { filter: brightness(1.35) drop-shadow(0 1px 2px rgb(0 0 0 / .9)); }

/* 16/11 lan 21: phim nen (len tren anh, mo dan khi da chay) */
.backdrop video.bgv { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; will-change: transform; pointer-events: none; }
.backdrop video.bgv.on { opacity: 1; }
.backdrop video.out { opacity: 0; }
.backdrop video.bgv { object-position: 50% 38%; }

/* ---------- 16/11 lan 22: trang co phim nen (body.vbg): bo moi lop lam mo/tron mau tinh lai theo tung khung phim (gay giat) */
body.vbg .rail, body.vbg .composer, body.vbg .job, body.vbg .panel, body.vbg table.fare, body.vbg .tile, body.vbg .wallet-card, body.vbg .empty,
body.vbg .rescard, body.vbg .dropzone, body.vbg .chip, body.vbg .seg button, body.vbg .amts button, body.vbg .steps, body.vbg .tk, body.vbg .ticker,
body.vbg .login, body.vbg .cmp-refnote, body.vbg .shot, body.vbg .mtile, body.vbg .newkey, body.vbg .tgwait, body.vbg .top, body.vbg .tabs { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.vbg .composer { background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)), rgb(11 12 26 / .78); }
body.vbg .rail { background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015)), rgb(10 10 26 / .42); }
body.vbg .job, body.vbg .panel, body.vbg .tile, body.vbg .rescard, body.vbg .dropzone, body.vbg .login { background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)), rgb(12 13 28 / .78); }
body.vbg .chip { background: rgb(22 23 44 / .7); }
body.vbg .cursor-light { mix-blend-mode: normal; opacity: .55; }
body.vbg .dust { display: none; }

/* ---------- 16/11 lan 23 (admin: menu cao qua, nut lua chon khong deu, the video khong co ranh gioi) ---------- */
/* menu thap gon */
.rail { padding: 12px 10px 10px; }
.rail-head { margin-bottom: 2px; min-height: 34px; }
.rail nav .grp { padding: 8px 10px 2px; }
.rail nav a { padding: 4px 8px 4px 6px; font-size: .8438rem; }
.rail nav a .ich { width: 26px; height: 26px; border-radius: 8px; }
.rail nav a .ich .ic { width: 14px; height: 14px; }
.rail nav a .bdg { padding: 3px 6px; font-size: .625rem; }
.rail .sp { flex: 0 0 8px; }
.rail .wallet-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.rail .wallet-card span { display: none; }
.rail .wallet-card b { margin: 0; font-size: .9688rem; }
.rail .wallet-card i { font-size: .75rem; padding: 4px 8px; border-radius: 999px; background: rgb(124 92 255 / .22); }
.rail .support { padding: 4px 8px; font-size: .8125rem; margin-top: 2px; }
.rail-foot { padding: 2px 4px 0; }
.rail-foot .ghost { padding: 4px 6px; font-size: .8125rem; }
/* nut lua chon: 1 hang deu nhau, gia + nut Tao xuong hang rieng canh phai */
.cmp-bar { flex-direction: column; align-items: stretch; gap: 10px; }
.cmp-bar .chips { flex-wrap: wrap; gap: 8px; }
.cmp-bar .chips .chip { height: 38px; }
.cmp-bar .go { justify-content: flex-end; width: 100%; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .07); }
/* the video: ranh gioi ro, cao bang nhau, nut thang day */
.jobs { gap: 18px; align-items: stretch; }
.job { display: flex; flex-direction: column; border: 1px solid rgb(255 255 255 / .16) !important; border-radius: 16px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .1) inset, 0 16px 34px -18px rgb(0 0 0 / .95) !important; }
body.vbg .job { background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015)), rgb(13 14 30 / .88); }
.job .media { border-bottom: 1px solid rgb(255 255 255 / .1); }
.job .meta { flex: 1; }
.job .txt { -webkit-line-clamp: 2; }
.job .act { margin-top: auto; }
.job:hover { border-color: rgb(190 180 255 / .32) !important; }
/* 16/11 lan 24 (admin: menu "ngan ngun, nhin ki"): cao vua phai, muc thoang hon, so du + ho tro + ngon ngu don xuong day */
.rail { min-height: min(680px, calc(100vh - 24px)); padding: 14px 10px 12px; }
.rail .sp { flex: 1 1 18px; }
.rail-head { margin-bottom: 6px; }
.rail nav .grp { padding: 14px 10px 5px; }
.rail nav a { padding: 6px 8px 6px 6px; font-size: .875rem; }
.rail nav a .ich { width: 28px; height: 28px; }
.rail .wallet-card { padding: 10px 12px; }
.rail .support { padding: 7px 8px; }
.rail-foot { padding-top: 6px; }

/* ---------- 16/11 lan 25 (admin: nut menu sat nhau; chuyen canh chua muot) */
.rail nav { gap: 4px; }
.rail nav .grp { padding-top: 12px; }
.rail nav a { padding: 7px 8px 7px 6px; }
/* trang co phim nen khong con lam mo kinh, nen duoc phep mo dan ca khoi noi dung khi chuyen trang */
body.vbg main > * { animation: pagein2 .38s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes pagein2 { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 16/11 lan 26: tieu de trang thang hang voi noi dung (cung khung 1240 canh giua); chuyen phim nen mo dan 0,9s */
@media (min-width: 901px) { .phead-in { max-width: 1240px; margin: 0 auto; padding-left: 0; padding-right: 0; } }
.backdrop video.bgv { transition: opacity .9s ease; }
.backdrop img { transition: opacity .9s ease; }
.job .media video:not([src]) { background: radial-gradient(circle at 50% 50%, rgb(124 92 255 / .18), rgb(8 9 20) 70%); }

/* ---------- 16/11 lan 27: o nhap Tao anh + khung keo tha Nang net rong het khung noi dung (het khoang trong ben phai) */
.cmp-wrap, .dropzone { max-width: none; }
/* 16/11 lan 28: chinh o nhap ben trong cung phai rong het (truoc chi noi khung ngoai) */
.cmp-wrap .composer, .page .dropzone { width: 100%; max-width: none; }

/* 16/11 lan 29: hoa canh chuan: lop moi (anh + phim) nam tren, hien dan tu 0 len 1; lop cu khong mo */
.backdrop img.bgi { opacity: 0; transition: opacity .9s ease; }
.backdrop img.bgi.on { opacity: 1; }
.backdrop .dust { z-index: 3; }

/* ---------- 16/11 lan 30 (admin: cac trang khac kho ngam nen, khong trong suot nhu trang Tao video): khung mo ~50% thay vi 78-88% */
body.vbg .panel, body.vbg .tile, body.vbg .rescard, body.vbg .dropzone, body.vbg .login, body.vbg .composer, body.vbg table.fare, body.vbg .wallet-card:not(.rail .wallet-card), body.vbg .empty {
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .01)), rgb(10 11 26 / .5) !important;
  border-color: rgb(255 255 255 / .16) !important; }
body.vbg .job { background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .01)), rgb(10 11 26 / .55) !important; }
body.vbg .panel, body.vbg .job .meta, body.vbg .composer, body.vbg .dropzone, body.vbg .tile, body.vbg .rescard { text-shadow: 0 1px 3px rgb(3 4 12 / .85); }
body.vbg .field { background: rgb(8 9 20 / .55); }
body.vbg .cardx .veil { background: linear-gradient(120deg, rgb(7 8 15 / .55), rgb(7 8 15 / .15)) !important; }

/* ---------- 16/11 lan 31: hop lua chon bung ra duoi nut duoc bam (popover) */
.cmp-tray.anchored { right: auto; padding: 14px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .16);
  box-shadow: 0 22px 50px -16px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .12); transform-origin: var(--ox, 24px) 0; }
.cmp-tray.anchored:not(.hide) { animation: trayin2 .28s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes trayin2 { from { opacity: 0; transform: translateY(-6px) scale(.94); } }
.cmp-tray.anchored::before { content: ""; position: absolute; top: -6px; left: calc(var(--ox, 24px) - 6px); width: 12px; height: 12px; transform: rotate(45deg);
  background: rgb(22 23 44); border-left: 1px solid rgb(255 255 255 / .16); border-top: 1px solid rgb(255 255 255 / .16); }
.cmp-tray.anchored .opts { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.cmp-tray.anchored .opts.two { grid-template-columns: 1fr 1fr; }
.cmp-tray.anchored .opts:not(.two) { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }

/* ---------- 16/11 lan 32: nut nen dong/tinh + man cho tai */
.rail-foot { gap: 4px; }
.rail-foot .bgbtn { margin-left: auto; padding: 4px 8px; }
.app.mini .rail-foot .bgbtn { margin-left: 0; }
.top .bgbtn { padding: 6px 8px; }

/* 16/11 lan 33: o "Moi ban be" trang Tai khoan */
#ref h2 { display: flex; align-items: center; gap: 10px; }
#ref h2 svg { width: 22px; height: 22px; color: #ffd166; flex: none; }
.rf-perks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.rf-perks li { position: relative; padding-left: 20px; font-size: .9375rem; line-height: 1.5; color: var(--soft); }
.rf-perks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #6fe0ad; }
.rf-perks li b { color: var(--text, #fff); font-weight: 700; }
.rf-line { margin-top: 14px; }
.rf-line small { display: block; color: var(--soft); font-size: .8125rem; margin-bottom: -4px; }

/* 16/11 lan 34: che do Nhieu video */
.mb-note b.mb-n { color: #6fe0ad; font-weight: 700; }

/* 16/11 lan 35 (admin OCD: khong de khoang trong): Tai khoan = hang 1 Ho so | Cach dang nhap (cao bang nhau), hang 2 Moi ban be (ca ngang, 2 cot), hang 3 Khoa API */
.acct { align-items: stretch; }
.acct > section:nth-child(3), .acct > section:nth-child(4) { grid-column: 1 / -1; }
.acct > section:first-child { display: flex; flex-direction: column; }
.acct > section:first-child > div:last-child { margin-top: auto !important; padding-top: 20px; }
.rf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.rf-r .rf-line:first-child { margin-top: 0; }
.rf-kv { margin-top: 14px; }
.rf-kv div:last-child { border-bottom: 0; }
@media (max-width: 900px) { .acct > section:nth-child(3), .acct > section:nth-child(4) { grid-column: auto; } .rf-grid { grid-template-columns: 1fr; gap: 18px; } }
.rf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.rf-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--r-s); background: rgb(255 255 255 / .05); border: 1px solid var(--line); }
.rf-stats span { color: var(--soft); font-size: .8125rem; }
.rf-stats b { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 901px) { .wrap.page { padding-right: 14px; } }

/* 16/11 lan 36: bao dong khach + lua chon tam khoa */
.qbox { color: #ffd166; }
.qbox.hot { color: #ffb4a2; }
.cmp-tray .opt.locked { opacity: .42; cursor: not-allowed; }
.cmp-tray .opt.locked:hover { transform: none; }
.cmp-bar .go .mb-chip { height: 38px; flex: none; }

/* 16/11 lan 37: luot mien phi tester */
.cost b.free { color: #6fe0ad; }

/* 16/11 lan 38 (khach): so thu tu video */
.job .media { position: relative; }
.job .seqtag { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgb(10 11 26 / .78); border: 1px solid rgb(255 255 255 / .18);
  color: #fff; font-weight: 800; font-size: .875rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.job .jtop .seqno { color: #c9b8ff; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile { position: relative; }
.tile .seqtag, .job .seqtag { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgb(10 11 26 / .78); border: 1px solid rgb(255 255 255 / .18);
  color: #fff; font-weight: 800; font-size: .875rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.sheet .seqno { color: #c9b8ff; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
/* 16/11: thu vien xep theo HANG (trai -> phai) de so thu tu doc lien mach, khong xep cot doc nua */
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .libgrid { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (min-width: 901px) { .phead-in { padding-right: 14px; } }

/* 16/11 lan 39: mo ta day du tren the video */
.job .txt.open { -webkit-line-clamp: unset; display: block; max-height: 260px; overflow: auto; }
.job .pbox .more { margin-top: 4px; padding: 0; background: none; border: 0; color: #a9bcff; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.job .pbox .more:hover { text-decoration: underline; }

/* 16/11 lan 40: trang API */
.apig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.apig > section:first-child { display: flex; flex-direction: column; }
.apig > section:nth-child(3) { grid-column: 1 / -1; }
.apif { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.apif:last-of-type { border-bottom: 0; }
.apif .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgb(143 227 255 / .1); color: #8fe3ff; }
.apif .dot svg { width: 18px; height: 18px; }
.apif b { display: block; font-size: .9375rem; }
.apif p { margin: 2px 0 0; color: var(--soft); font-size: .875rem; line-height: 1.5; }
.codebox { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r-s); background: rgb(0 0 0 / .45); border: 1px solid var(--line); overflow-x: auto;
  font: 500 .8125rem/1.65 ui-monospace, Consolas, monospace; color: #d7e3ff; white-space: pre; }
.apisteps { margin: 16px 0 0; padding-left: 20px; color: var(--soft); font-size: .875rem; line-height: 1.6; display: grid; gap: 4px; }
@media (max-width: 900px) { .apig { grid-template-columns: 1fr; } .apig > section:nth-child(3) { grid-column: auto; } }
.codebox { white-space: pre-wrap; overflow-wrap: anywhere; }
.apicode { display: flex; flex-direction: column; }
.apicode .apisteps { margin-top: auto; padding-top: 16px; }

/* 17/11 lan 41: Bang gia tren dien thoai */
.qlinks { display: none; }
@media (max-width: 900px) {
  .qlinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; }
  .qlinks a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; padding: 8px 4px; border-radius: var(--r-s);
    background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); font-size: .8125rem; font-weight: 600; text-align: center; color: var(--text); }
  .qlinks a svg { width: 20px; height: 20px; color: #c9b8ff; }
}
/* 17/11 lan 42: thanh duoi 6 muc (them Bang gia): chu 1 dong, khong bi goc bo cat */
@media (max-width: 900px) {
  .tabs a { white-space: nowrap; font-size: .6875rem; letter-spacing: -.01em; min-width: 0; padding: 0 1px; }
  .tabs { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 370px) { .tabs a { font-size: .640rem; letter-spacing: -.02em; } }

/* 17/11 lan 43: bao co ban moi */
.newver { position: fixed; left: 50%; transform: translateX(-50%); top: 14px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px;
  background: rgb(18 16 40 / .95); border: 1px solid rgb(160 140 255 / .45); box-shadow: 0 10px 30px rgb(0 0 0 / .45); font-size: .875rem; white-space: nowrap; }

/* 17/11 lan 44: dieu khoan */
.legaldoc .lsec + .lsec { margin-top: 6px; }
.legaldoc .lsec ul { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.6; color: var(--soft); }
.legaldoc .lsec.hl { margin: 18px 0; padding: 4px 20px 12px; border-radius: var(--r-s); background: rgb(255 197 143 / .07); border: 1px solid rgb(255 197 143 / .35); }
.legaldoc .lsec.hl h2 { color: #ffd2a6; }
.wterms { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; line-height: 1.55; }
.wterms svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: #ffc58f; }

/* 17/11 lan 45: loi tat 4 o chu 1 dong; muc hoan tien khong bi thanh dau trang che */
.qlinks a span { white-space: nowrap; }
.legaldoc .lsec.hl { scroll-margin-top: 16px; }
@media (max-width: 900px) { .legaldoc .lsec.hl { scroll-margin-top: calc(var(--top-h) + 12px); padding: 4px 16px 12px; } }

/* 17/11 lan 46: hop lua chon tren dien thoai bung ngay cho bam; bung len tren thi mui nhon o duoi */
.cmp-tray.anchored.up { transform-origin: var(--ox, 24px) 100%; }
.cmp-tray.anchored.up::before { top: auto; bottom: -6px; border-left: 0; border-top: 0; border-right: 1px solid rgb(255 255 255 / .16); border-bottom: 1px solid rgb(255 255 255 / .16); }
.cmp-tray.anchored.up:not(.hide) { animation: trayin3 .28s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes trayin3 { from { opacity: 0; transform: translateY(6px) scale(.94); } }
@media (max-width: 640px) {
  .cmp-tray.anchored { padding: 12px; }
  .cmp-tray.anchored .opts:not(.two) { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .cmp-tray.anchored .opts.two { grid-template-columns: 1fr 1fr; }
  .cmp-tray.anchored .opt { padding: 10px 11px; }
}

/* 17/11 lan 47: o tich dong y dieu khoan o trang dang nhap */
.login .agree { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .12); font-size: .875rem; line-height: 1.5; color: var(--soft); cursor: pointer; text-align: left; }
.login .agree input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #8f72ff; cursor: pointer; }
.login .agree .lnk { color: #c9c0ff; }
.login .agree.need { border-color: rgb(255 140 140 / .75); background: rgb(255 120 120 / .08); animation: agreeshake .4s; }
@keyframes agreeshake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.authbtns.needagree .authbtn:not(.off) { opacity: .55; }

/* 17/11 lan 48: video da chuyen sang kho luu tru: bam moi tai */
.media.cold { background: radial-gradient(circle at 50% 40%, rgb(124 92 255 / .22), rgb(8 9 20 / .9)); }
.coldplay, .coldtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 180px;
  color: #e6e0ff; font-size: .875rem; font-weight: 600; background: none; border: 0; cursor: pointer; }
.coldplay svg, .coldtile svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); }
.coldtile { background: radial-gradient(circle at 50% 40%, rgb(124 92 255 / .22), rgb(8 9 20 / .9)); width: 100%; height: auto; }
.coldwait { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--soft); font-size: .875rem; padding: 24px; text-align: center; }
.coldwait .spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .15); border-top-color: #a48bff; animation: coldspin 1s linear infinite; }
@keyframes coldspin { to { transform: rotate(360deg); } }

/* 17/11 lan 49: xoa video */
.btn.small.del { color: #ffb4b4; }
.btn.small.del.sure { background: rgb(255 90 90 / .22); border-color: rgb(255 120 120 / .6); color: #fff; }
.block-h .delfail { color: #ffb4b4; margin-right: 16px; font-size: .875rem; }
.block-h .delfail[data-sure="1"] { color: #fff; font-weight: 600; }
.btn.small.del { min-width: 96px; justify-content: center; }
.btn.small.del { min-width: 0; width: 36px; padding: 0; justify-content: center; }
.btn.small.del svg { margin: 0; }
@media (max-width: 640px) { .job .btn.small.copyp { width: 36px; padding: 0; justify-content: center; } .job .btn.small.copyp .lbl { display: none; } .job .btn.small.copyp svg { margin: 0; } }

/* 17/11 lan 50: dong "Dang ket noi lai may chu" */
.netbar { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgb(18 16 40 / .95); border: 1px solid rgb(160 140 255 / .45); box-shadow: 0 10px 30px rgb(0 0 0 / .45); font-size: .875rem; color: #e6e0ff; white-space: nowrap;
  animation: netin .3s ease; transition: opacity .35s, transform .35s; }
.netbar.bye { opacity: 0; transform: translate(-50%, -8px); }
.netbar .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .18); border-top-color: #a48bff; animation: coldspin 1s linear infinite; }
@keyframes netin { from { opacity: 0; transform: translate(-50%, -8px); } }

/* 17/11 lan 51: thong bao chung dau trang */
.sitenote { display: flex; align-items: flex-start; gap: 10px; margin: 14px clamp(14px, 3vw, 32px) 0; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(180deg, rgb(255 190 110 / .16), rgb(255 160 80 / .08)), rgb(20 14 10 / .7); border: 1px solid rgb(255 190 110 / .45);
  color: #ffe2bf; font-size: .9375rem; line-height: 1.5; position: relative; z-index: 2; }
.sitenote .ic { flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; color: #ffc27a; }
.sitenote .ic svg { width: 18px; height: 18px; }

/* 18/11 lan 52 (admin: thu vien chua khoang trong duoi o 16:9 vi o 9:16 cao): moi o cung khung vuong, cung chieu cao */
.libgrid { align-items: stretch; }
.libgrid .tile { display: flex; flex-direction: column; }
.libgrid .tile .lmedia { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.libgrid .tile .lmedia > video, .libgrid .tile .lmedia > .coldtile { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; aspect-ratio: auto; }
.libgrid .tile .ratiotag { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgb(10 11 26 / .75); border: 1px solid rgb(255 255 255 / .18);
  font-size: .75rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.libgrid .tile .info p { min-height: calc(2 * 1.5em); line-height: 1.5; }

/* 18/11 lan 53 (admin: khung xem video chua khoang trong duoi video): khung cao DUNG bang video, cot mo ta co theo, chu dai thi cuon */
@media (min-width: 901px) {
  .sheet .box { align-items: stretch; min-height: 360px; }
  .sheet .box > video { display: block; width: 100%; height: 100%; max-height: calc(100vh - 42px); object-fit: contain; align-self: stretch; }
  .sheet .side { contain: size; overflow: hidden; }
  .sheet .side .txt { flex: 1 1 auto; min-height: 48px; max-height: none; }
}
@media (min-width: 901px) {
  .sheet .box.tall { width: auto; max-width: calc(100vw - 40px); grid-template-columns: auto 340px; }
  .sheet .box.tall > video { width: auto; height: calc(100vh - 42px); max-width: calc(100vw - 420px); }
}
/* 18/11: Giong Viet (doc tieng Viet) */
.tts-cmp .cmp-input { min-height: 120px; }
.tts-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 20px 4px; font-size: .8125rem; color: var(--faint); }
.tts-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--soft); }
.tts-count.over { color: var(--err); }
.tts-speed { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.tts-speed .ic { width: 15px; height: 15px; }
.tts-sec { padding: 10px 16px 4px; border-top: 1px solid rgb(255 255 255 / .07); }
.tts-sec.hide { display: none; }
.tts-sec .lb { margin-bottom: 10px; }
.tts-voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tts-voices .opt b { font-size: .9375rem; }
.tts-jobs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tts-audio { width: 100%; height: 40px; border-radius: 999px; color-scheme: dark; }
.tts-wait { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--soft); padding: 8px 12px; border-radius: 12px; background: rgb(127 227 196 / .08); border: 1px solid rgb(127 227 196 / .2); }
.tts-wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; flex: none; }
.tts-wave i { width: 3px; height: 100%; border-radius: 2px; background: #7fe3c4; animation: ttsw 1s ease-in-out infinite; transform-origin: center; }
.tts-wave i:nth-child(2) { animation-delay: .15s; } .tts-wave i:nth-child(3) { animation-delay: .3s; } .tts-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes ttsw { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (max-width: 640px) { .tts-speed { margin-left: 0; } .tts-voices { grid-template-columns: repeat(2, 1fr); } .tts-jobs { grid-template-columns: 1fr; } }
/* 18/11: thanh duoi 7 muc (them Giong Viet): chu nho hon 1 chut, dai qua thi cat bang dau ba cham thay vi de len nhau */
@media (max-width: 900px) {
  .tabs:has(> a:nth-child(7)) a { font-size: .625rem; letter-spacing: -.02em; }
  .tabs a .tl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 370px) { .tabs:has(> a:nth-child(7)) a { font-size: .58rem; } }

/* 18/11 lan 54: chuong thong bao goc tren ben phai */
.bellbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #e6e0ff; cursor: pointer;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); transition: background .15s, border-color .15s; }
.bellbtn:hover { background: rgb(255 255 255 / .13); border-color: rgb(255 255 255 / .26); }
.bellbtn svg { width: 19px; height: 19px; }
.bellbtn .bdot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff4d6d; color: #fff;
  font: 700 .6875rem/18px var(--f-body); text-align: center; box-shadow: 0 0 0 2px rgb(10 11 26); }
.bellbtn.ring svg { animation: bellring .9s ease; transform-origin: 50% 10%; }
@keyframes bellring { 10%, 50% { transform: rotate(14deg); } 30%, 70% { transform: rotate(-14deg); } 90% { transform: rotate(4deg); } }
.bellbtn.desk { position: fixed; top: 18px; right: 22px; z-index: 35; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgb(16 17 35 / .72); }
.bellbtn.mob { width: 36px; height: 36px; border-radius: 10px; }
.top .bellbtn.mob { flex-shrink: 0; }
@media (max-width: 900px) { .bellbtn.desk { display: none; } }
@media (min-width: 901px) { .bellbtn.mob { display: none; } .sitenote { margin-right: 78px; } }
.bellpanel { position: fixed; z-index: 90; width: min(380px, calc(100vw - 20px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)), rgb(16 17 35 / .97); border: 1px solid rgb(255 255 255 / .16);
  box-shadow: 0 24px 60px -16px rgb(0 0 0 / .9); animation: trayin2 .25s cubic-bezier(.2, .9, .3, 1.15); transform-origin: top right; overflow: hidden; }
.bellpanel .bhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.bellpanel .bhead b { font-size: 1rem; }
.bellpanel .blist { overflow: auto; padding: 6px; }
.bellpanel .bitem { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 12px; }
.bellpanel .bitem + .bitem { margin-top: 2px; }
.bellpanel .bitem.new { background: rgb(160 140 255 / .12); }
.bellpanel .bitem .bi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgb(255 190 110 / .14); color: #ffc27a; }
.bellpanel .bitem .bi svg { width: 16px; height: 16px; }
.bellpanel .bitem p { margin: 0; font-size: .9063rem; line-height: 1.5; color: #ece9ff; white-space: pre-wrap; overflow-wrap: anywhere; }
.bellpanel .bitem small { display: block; margin-top: 4px; color: var(--faint); font-size: .75rem; }
.bellpanel .bempty { padding: 26px 16px; text-align: center; color: var(--soft); font-size: .9063rem; }

/* 20/11 (admin: tren dien thoai so du de len logo): logo KHONG BAO GIO bi bop; cac nut khac gon lai khi chat */
.top .brand { flex-shrink: 0; min-width: auto; overflow: visible; }
@media (max-width: 430px) {
  .top { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .top .pill { padding: 0 10px; font-size: .8125rem; min-height: 32px; }
  .top .ghost { padding-left: 6px; padding-right: 6px; }
  .top .langshort svg { display: none; }
  .top .bellbtn.mob { width: 34px; height: 34px; }
}
@media (max-width: 350px) { .top .bgbtn { display: none; } }
@media (max-width: 430px) { .top .brand .wm { display: none; } }

/* 20/11 (admin): thong bao co nut tat; chuong may tinh cung dinh + cung chieu cao 1 dong thong bao; dieu khoan nam giua */
.sitenote .nt { flex: 1; min-width: 0; }
.sitenote .nx { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; margin: -2px -6px -2px 4px; border-radius: 8px; color: #ffd9ad; cursor: pointer; background: transparent; border: 0; }
.sitenote .nx:hover { background: rgb(255 190 110 / .18); color: #fff; }
.sitenote .nx svg { width: 16px; height: 16px; }
.bellbtn.desk { top: 14px; width: 48px; height: 48px; border-radius: 14px; }
.bellbtn.desk svg { width: 20px; height: 20px; }
@media (min-width: 901px) { .sitenote { margin-right: 86px; } }
.bellpanel .bitem.pin .bi { background: rgb(255 190 110 / .22); }
@media (min-width: 901px) { .legalpage .wrap, .legalpage .wrap.page { max-width: 852px; padding-left: 0; padding-right: 0; } }
.legalpage .legaldoc { max-width: none; }

/* 20/11: lop anh mo sieu nho duoi cung cua nen (hien ngay khi chua tai xong anh net / phim) -> khong bao gio man den */
.backdrop::before { content: ""; position: absolute; inset: -60px; background: var(--lq, none) center / cover no-repeat; filter: blur(28px) saturate(1.1); transform: translateZ(0); transition: background-image .4s ease; }

/* 20/11 (admin: don 3 anh thua 1 o den, the cao thap lech hang): khung anh moi the CUNG chieu cao (2:1), 1/2/3 anh 1 hang, 4 anh 2x2, khong o trong */
.imgrid { aspect-ratio: 2 / 1; grid-auto-rows: 1fr; }
.imgrid.n1 { grid-template-columns: 1fr; }
.imgrid.n2 { grid-template-columns: 1fr 1fr; }
.imgrid.n3 { grid-template-columns: 1fr 1fr 1fr; }
.imgrid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.imgrid a { position: relative; min-height: 0; }
.imgrid img, .imgrid.n1 img { aspect-ratio: auto; width: 100%; height: 100%; object-fit: cover; display: block; }
.imgrid.n1 img { object-fit: contain; }
.imgrid .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .55); color: #fff; font: 600 1.25rem var(--f-display); }
.imjobs { align-items: stretch; }
.imjob { display: flex; flex-direction: column; }
.imjob .media.busy { aspect-ratio: 2 / 1; }
.imjob .meta { flex: 1; }
.imjob .act { margin-top: auto; }
/* 20/11: nut cua the anh luon 1 hang (don 3-4 anh truoc bi rot nut xoa xuong dong lam lech hang the) */
.imjob .act { flex-wrap: nowrap; gap: 5px; min-width: 0; }
.imjob .act .btn.small { padding: 0 10px; flex-shrink: 0; }
.imjob .act .btn.small:not(.del) { min-width: 0; }

/* 20/11: the 3-4 anh tren man hep (dien thoai) -> nut Dung lai mo ta chi con bieu tuong, van 1 hang */
.imjob { container-type: inline-size; }
.imjob .reuse svg { width: 15px; height: 15px; }
.imjob .act { gap: 4px; }

/* 21/11: tai co tien do; the anh: so thu tu + nut tai rieng tren tung anh */
.btn.dl-busy { opacity: .85; pointer-events: none; }
.btn .dlp { font-variant-numeric: tabular-nums; }
.imgrid .cell { position: relative; min-height: 0; overflow: hidden; }
.imgrid .cell > a:not(.cdl) { display: block; width: 100%; height: 100%; }
.imgrid .no { position: absolute; top: 7px; left: 7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: rgb(10 10 25 / .72); color: #fff; font: 600 .75rem/1 var(--f-display); backdrop-filter: blur(6px); pointer-events: none; }
.imgrid .cdl { position: absolute; right: 7px; bottom: 7px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: rgb(10 10 25 / .72); color: #fff; border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.imgrid .cdl:hover { background: var(--accent, #7c5cff); transform: translateY(-1px); }
.imgrid .cdl svg { width: 16px; height: 16px; }
.imgrid .cdl.dl-busy { width: auto; padding: 0 9px; gap: 5px; grid-auto-flow: column; font-size: .75rem; }
.imgrid .cell .more { pointer-events: none; }
@container (max-width: 340px) { .imjob .reuse .rl { display: none; } .imjob .reuse { padding: 0 11px; } }

/* 22/11: may yeu (tu do khung/giay) -> tat mo kinh tren nen phim, thay bang nen kinh dam hon de chu van ro */
body.lowfx * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.lowfx .job, body.lowfx .panel, body.lowfx table.fare, body.lowfx .tile, body.lowfx .wallet-card, body.lowfx .empty, body.lowfx .login,
body.lowfx .composer, body.lowfx .sitenote, body.lowfx .dropzone, body.lowfx .newkey, body.lowfx .rescard { background-color: rgb(13 15 28 / .9) !important; }
body.lowfx .rail, body.lowfx .top, body.lowfx .tabs, body.lowfx .bellbtn, body.lowfx .bellpanel { background-color: rgb(9 10 20 / .92) !important; }
body.lowfx .chip, body.lowfx .seg button, body.lowfx .amts button { background-color: rgb(28 30 52 / .85); }
/* 22/11 (admin: mobile roi tung beng): hang cuoi o tao video tren dien thoai -> 2 hang co dinh.
   Hang 1: Nhieu video (trai) + Server (phai); Hang 2: gia / luot mien phi (trai) + nut gui (phai). Khong be chu, khong tran mep. */
@media (max-width: 600px) {
  .cmp-bar .go { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 10px; align-items: center; justify-content: stretch; }
  .cmp-bar .go > .mb-chip { grid-row: 1; grid-column: 1; justify-self: start; }
  .cmp-bar .go > .chip:not(.mb-chip) { grid-row: 1; grid-column: 2; justify-self: end; white-space: nowrap; }
  .cmp-bar .go > .chip span { white-space: nowrap; }
  .cmp-bar .go > .cost { grid-row: 2; grid-column: 1; text-align: left; margin: 0 !important; min-width: 0; }
  .cmp-bar .go > .cost span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmp-bar .go > .send, .cmp-bar .go > a.btn { grid-row: 2; grid-column: 2; justify-self: end; }
}
/* 22/11: nen phim chay thi thanh tren + thanh tab khong co mo kinh (de nhe may) -> phai dac hon, chu phia sau khong duoc lo len chong chu tab */
body.vbg .tabs, body.lowfx .tabs { background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)), rgb(10 11 24 / .93) !important; }
body.vbg .top, body.lowfx .top { background: rgb(8 9 20 / .9) !important; }
/* 22/11 (admin gui anh: Nhieu video de len Server tren dien thoai that): moi nut 1 hang rieng, khong bao gio chong */
@media (max-width: 600px) {
  .cmp-bar .go > .mb-chip { grid-row: 1; grid-column: 1 / -1; justify-self: start; }
  .cmp-bar .go > .chip:not(.mb-chip) { grid-row: 2; grid-column: 1 / -1; justify-self: start; max-width: 100%; }
  .cmp-bar .go > .cost { grid-row: 3; }
  .cmp-bar .go > .send, .cmp-bar .go > a.btn { grid-row: 3; }
  body.vbg .tabs, body.lowfx .tabs { background: rgb(10 11 24 / .97) !important; }
}

/* 24/11 22:1x (admin, iPhone 16 Pro Max rong 440px): nut "Dang nhap" bi ep con 26px, chu bi cat ("ng nh"). Quy tac an chu "Seedance Studio"
   chi ap dung <=430px nen dien thoai rong 431-560px van hien chu va day nut. Nut tren thanh dau khong bao gio bi bop; chu thuong hieu an toi 560px. */
.top .btn, .top .pill { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .top .brand .wm { display: none; }
  .top { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .top .langshort svg { display: none; }
}

/* 25/11 NOV mrow: khay chon model gon (2 nhom, cuon ben trong, khong tran man hinh) */
.cmp-tray .mwrap { max-height: min(56vh, 470px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px 2px; scrollbar-width: thin; }
.cmp-tray .mgroup { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a9a3d9; margin: 10px 2px 6px; }
.cmp-tray .mgroup:first-child { margin-top: 2px; }
.cmp-tray .mlist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 8px 11px; border-radius: 11px; text-align: left;
  border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .05); transition: background .15s, border-color .15s; }
.mrow:hover { background: rgb(255 255 255 / .1); }
.mrow.on { background: rgb(124 92 255 / .26); border-color: rgb(170 160 255 / .75); }
.mrow.maint { opacity: .55; }
.mrow .mn { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mrow b { font: 600 .9375rem/1.25 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow small { font-size: .75rem; line-height: 1.3; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow i { flex: none; font-style: normal; font-size: .8125rem; font-weight: 600; color: #cfc6ff; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .cmp-tray .mlist { grid-template-columns: 1fr; } .cmp-tray .mwrap { max-height: 50vh; } .mrow { padding: 9px 11px; } }

/* 25/11 liquid glass: khay lua chon nam o lop rieng (body), kinh trong suot that: mo + bao hoa nen, vien sang, anh phan chieu tren mep */
.cmp-tray.portal { position: fixed; z-index: 80; right: auto; isolation: isolate; overflow: visible;
  background: linear-gradient(155deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05) 38%, rgb(255 255 255 / .03) 70%, rgb(255 255 255 / .08)), rgb(20 18 44 / .34);
  -webkit-backdrop-filter: blur(28px) saturate(185%) brightness(1.05); backdrop-filter: blur(28px) saturate(185%) brightness(1.05);
  border: 1px solid rgb(255 255 255 / .24); border-radius: 22px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(255 255 255 / .08), inset 0 0 0 1px rgb(255 255 255 / .04), 0 30px 70px -20px rgb(0 0 0 / .7), 0 8px 24px -12px rgb(60 40 160 / .5); }
.cmp-tray.portal::before { display: none; }
.cmp-tray.portal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 60% at 18% -10%, rgb(255 255 255 / .22), transparent 55%), radial-gradient(80% 50% at 110% 120%, rgb(140 120 255 / .18), transparent 60%); }
.cmp-tray.portal .lb { color: rgb(255 255 255 / .72); text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.cmp-tray.portal .mgroup { color: rgb(220 214 255 / .78); }
.cmp-tray.portal .opt, .cmp-tray.portal .mrow { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .14); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
.cmp-tray.portal .opt:hover, .cmp-tray.portal .mrow:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .26); }
.cmp-tray.portal .opt.on, .cmp-tray.portal .mrow.on { background: linear-gradient(135deg, rgb(150 120 255 / .42), rgb(110 90 255 / .22)); border-color: rgb(200 190 255 / .8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 18px -8px rgb(120 90 255 / .8); }
.cmp-tray.portal .mrow b, .cmp-tray.portal .opt b { text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.cmp-tray.portal .mrow small, .cmp-tray.portal .opt span { color: rgb(235 232 255 / .72); }
.cmp-tray.portal .mwrap::-webkit-scrollbar { width: 6px; }
.cmp-tray.portal .mwrap::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .22); border-radius: 6px; }
body.lowfx .cmp-tray.portal { background: rgb(18 18 38 / .96) !important; }

/* 25/11 toi (admin: web mat trong suot): thanh tren + thanh tab tro lai KINH (mo + trong), khong dac nua. Mo 24px nen chu phia sau nhoe, khong chong chu tab. */
body.vbg .tabs { background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .04)), rgb(12 13 28 / .55) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.7) !important; backdrop-filter: blur(24px) saturate(1.7) !important; }
body.vbg .top { background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02)), rgb(10 11 24 / .55) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.7) !important; backdrop-filter: blur(24px) saturate(1.7) !important; }
@media (max-width: 600px) { body.vbg .tabs { background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .04)), rgb(12 13 28 / .55) !important; } }
.coldplay.hasposter span, .coldtile.hasposter span { text-shadow: 0 1px 6px rgb(0 0 0 / .85); }
.coldplay.hasposter svg, .coldtile.hasposter svg { background: rgb(0 0 0 / .45); }
