/* khoskill — phòng dựng phim: nền tối, đèn REC cam, timecode, timeline */
:root {
  --bg: #0B0B0F;
  --bg-2: #101016;
  --surface: #15151C;
  --surface-2: #1B1B24;
  --surface-3: #23232E;
  --ink: #F4F1EA;
  --ink-2: #BDB9C8;
  --ink-3: #8D899C;
  --line: #2A2A36;
  --line-2: #3A3A49;
  --edge: #3A3A49;
  --muted: #1F1F29;
  --rec: #FF5B2E;
  --rec-soft: rgba(255, 91, 46, .14);
  --lime: #C6F432;
  --cyan: #3DD6F5;
  --violet: #9B7BFF;
  --primary: var(--rec);
  --primary-ink: #0B0B0F;
  --primary-soft: rgba(255, 91, 46, .12);
  --accent: var(--lime);
  --accent-ink: #0B0B0F;
  --mark: rgba(198, 244, 50, .14);
  --mark-solid: var(--lime);
  --danger: #FF6B6B;
  --warn-bg: rgba(255, 181, 71, .12);
  --warn-ink: #FFC978;
  --ok-bg: rgba(198, 244, 50, .1);
  --ok-ink: #D7F96E;
  --x-bg: #23232E;
  --x-ink: #BDB9C8;
  --r: 18px;
  --r-sm: 12px;
  --f-head: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --f-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--f-body); min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background: radial-gradient(900px 500px at 85% -10%, rgba(255, 91, 46, .16), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(155, 123, 255, .1), transparent 60%); }
body > * { position: relative; z-index: 1; }
main { flex: 1; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rec); color: #0B0B0F; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--lime); color: #0B0B0F; padding: 10px 14px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; }
.tc { font: 500 .8rem var(--f-mono); letter-spacing: .04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kicker { display: inline-block; font: 700 .75rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rec); margin-bottom: 10px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 780px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s, color .18s; touch-action: manipulation; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--rec); color: #0B0B0F; border-color: var(--rec); }
.btn-primary:hover { background: #FF7550; border-color: #FF7550; box-shadow: 0 8px 30px -8px rgba(255, 91, 46, .7); }
.btn-buy { background: var(--lime); color: #0B0B0F; border-color: var(--lime); }
.btn-buy:hover { background: #D5FB5A; border-color: #D5FB5A; box-shadow: 0 8px 30px -8px rgba(198, 244, 50, .55); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #0B0B0F; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-icon { padding: 0; width: 44px; }
.btn-icon.btn-sm { width: 36px; }
.btn-block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--rec); color: var(--rec); }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* Thanh trên */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 15, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.3rem var(--f-head); letter-spacing: -.03em; }
.logo-mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); transition: background-color .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); }
.topbar-act { display: flex; gap: 8px; align-items: center; }
.cart-btn { position: relative; padding: 0 16px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rec); color: #0B0B0F; font: 700 .75rem var(--f-mono); display: grid; place-items: center; line-height: 1; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav-toggle { display: none; }
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .cart-txt { display: none; }
  .topbar-act { margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
}

/* Hero */
.hero { padding: 48px 0 56px; overflow: hidden; }
.hero-in { display: grid; gap: 44px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-in > * { min-width: 0; }
@media (min-width: 1024px) { .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } .hero { padding: 72px 0 80px; } }
.eyebrow { max-width: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: 600 .8rem var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 rgba(255, 91, 46, .6); flex: none; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .rec-dot { animation: rec 1.6s ease-in-out infinite; } @keyframes rec { 50% { opacity: .35; } } }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 22px; max-width: 15ch; text-wrap: balance; }
.hero-title em { font-style: normal; color: var(--rec); display: block; text-wrap: balance; }
.hero-sub { font-size: 1.1rem; color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; text-wrap: balance; }
.prompt-demo { display: flex; align-items: flex-start; gap: 10px; font: 500 .92rem/1.55 var(--f-mono); color: var(--lime); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; min-height: 72px; max-width: 580px; }
.pd-sign { color: var(--rec); font: 700 1rem var(--f-mono); margin-right: 8px; }
.prompt-demo .pd-sign { margin: 0; }
.pd-cmd { color: var(--rec); font-weight: 700; }
.sec-note code, .panel-note code { font: .9em var(--f-mono); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.pd-caret { display: inline-block; width: 8px; height: 1.1em; background: var(--lime); margin-left: 2px; transform: translateY(3px); }
@media (prefers-reduced-motion: no-preference) { .pd-caret { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } } }
.search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 48px; max-width: 580px; transition: border-color .15s; }
.search > .ic { position: absolute; left: 18px; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1rem; height: 44px; }
.search input::placeholder { color: var(--ink-3); }
.search:focus-within { border-color: var(--lime); }
.search-sm { padding: 2px 4px 2px 44px; flex: 1; }
.search-sm > .ic { left: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 28px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .8rem; color: var(--ink-3); }
.hero-stats dd { margin: 0; font: 800 1.9rem var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Khung trình dựng */
.editor { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 10px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.editor-bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; }
.win-dots { display: flex; gap: 6px; }
.win-dots i { display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.win-dots i:first-child { background: var(--rec); }
.editor-name { font: 500 .78rem var(--f-mono); color: var(--ink-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; text-decoration: none; }
.monitor video { width: 100%; height: 100%; object-fit: contain; }
.monitor-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: var(--ink-3); }
.monitor-empty .ic { width: 40px; height: 40px; margin: 0 auto; }
.monitor-label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 15, .72); backdrop-filter: blur(8px); font-weight: 600; font-size: .85rem; max-width: calc(100% - 24px); }
.monitor-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-safe { position: absolute; inset: 7%; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.monitor:hover .monitor-safe { opacity: 1; }
.timeline { position: relative; margin-top: 10px; padding: 6px 0 4px; display: grid; gap: 5px; }
.ruler { display: flex; justify-content: space-between; padding-left: 34px; font: 500 .62rem var(--f-mono); color: var(--ink-3); }
.track { display: grid; grid-template-columns: 28px 1fr; gap: 6px; align-items: center; }
.track b { font: 700 .65rem var(--f-mono); color: var(--ink-3); text-align: center; }
.lane { position: relative; height: 26px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.clip { position: absolute; top: 2px; bottom: 2px; left: calc(var(--x) + 1px); width: calc(var(--w) - 2px); border-radius: 5px; background: color-mix(in srgb, var(--c) 30%, var(--bg-2)); border-left: 3px solid var(--c); font: 600 .62rem/22px var(--f-body); padding: 0 6px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clip-t { text-align: center; padding: 0; }
.lane-wave { color: color-mix(in srgb, var(--cyan) 70%, transparent); }
.wave { width: 100%; height: 100%; fill: currentColor; }
.playhead { position: absolute; top: 0; bottom: 0; left: calc(34px + (100% - 34px) * var(--p, 0)); width: 2px; background: var(--rec); box-shadow: 0 0 12px var(--rec); pointer-events: none; }
.playhead::before { content: ''; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--rec); }

/* Dải chữ chạy */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 14px 0; }
.marquee-in { display: flex; gap: 28px; width: max-content; font: 800 1.35rem var(--f-head); letter-spacing: -.02em; white-space: nowrap; color: var(--ink-2); }
.marquee-in i { color: var(--rec); font-style: normal; }
@media (prefers-reduced-motion: no-preference) { .marquee-in { animation: marq 45s linear infinite; } @keyframes marq { to { transform: translateX(-50%); } } }

/* Khối chung */
.sec { padding: 64px 0; }
.sec-tight { padding-top: 16px; }
.sec-top0 { padding-top: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-note { margin: 0; max-width: 46ch; }
.sec-head h2 + .sec-note { margin-top: 10px; }
.page-head { padding: 48px 0 28px; }
.page-head h1 { margin-bottom: .2em; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.box h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.box-soft { background: var(--surface-2); }
.box-ok { background: var(--ok-bg); border-color: rgba(198, 244, 50, .35); color: var(--ok-ink); }
.box-ok h2 { color: var(--lime); }
.box-ok p { color: var(--ink); }
.box-warn { background: var(--warn-bg); border-color: rgba(255, 181, 71, .35); color: var(--warn-ink); }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 500; font-size: .9rem; text-decoration: none; color: var(--ink-2); transition: border-color .15s, background-color .15s, color .15s; }
a.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a.chip-on:hover { color: var(--bg); }
.chip-n { opacity: .6; font: .75rem var(--f-mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.badge-off { padding: 3px 10px; border-radius: 999px; background: var(--rec); color: #0B0B0F; font: 700 .78rem var(--f-mono); }
.tag { font: .82rem var(--f-mono); color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }

/* Thẻ skill */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 91, 46, .25); }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--r); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.card-media .cover, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.card:hover .card-media .cover { transform: scale(1.04); }
.card-media video { opacity: 0; object-fit: contain; background: #000; }
.card.playing .card-media video { opacity: 1; }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 15, .55)); pointer-events: none; }
.tag-cat, .tag-play, .tag-hot { position: absolute; z-index: 1; padding: 4px 10px; border-radius: 999px; font: 600 .72rem var(--f-mono); letter-spacing: .03em; }
.tag-cat { top: 12px; left: 12px; background: rgba(11, 11, 15, .72); backdrop-filter: blur(8px); color: var(--ink); }
.tag-hot { top: 12px; right: 12px; background: var(--rec); color: #0B0B0F; text-transform: uppercase; }
.tag-play { bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(11, 11, 15, .72); backdrop-filter: blur(8px); color: var(--lime); transition: opacity .2s; }
.tag-play .ic { width: 12px; height: 12px; }
.card.playing .tag-play { opacity: 0; }
.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.cover-gen { display: grid; place-items: end start; padding: 18px; background:
  radial-gradient(120% 90% at 100% 0%, hsl(var(--h) 85% 55% / .55), transparent 60%),
  repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .03) 22px 23px),
  linear-gradient(160deg, hsl(var(--h) 40% 16%), #0B0B0F); }
.cover-gen span { font: 800 1.5rem/1.05 var(--f-head); letter-spacing: -.03em; color: #fff; max-width: 14ch; }
.cover-lg.cover-gen span { font-size: 2.6rem; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 18px; flex: 1; }
.card-title { font-size: 1.2rem; margin: 0; font-weight: 800; }
.card-short { color: var(--ink-2); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.card-foot .btn { position: relative; z-index: 3; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font: 700 1.15rem var(--f-mono); color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-xl { font-size: 2.1rem; }
.price-old { color: var(--ink-3); font: .9rem var(--f-mono); }
@media (prefers-reduced-motion: no-preference) {
  .js .grid .card { animation: up .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
  @keyframes up { from { opacity: 0; transform: translateY(14px); } }
}

/* Prompt */
.sec-prompts { background: var(--bg-2); border-block: 1px solid var(--line); }
.prompts-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pcard { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.pcard:hover { border-color: var(--line-2); }
.pcard figcaption { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .82rem; color: var(--ink-3); }
.pcard figcaption a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pcard figcaption a:hover { color: var(--rec); }
.pcard figcaption span { font: 600 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--rec); }
.pcard blockquote { margin: 0; flex: 1; font: 500 .92rem/1.6 var(--f-mono); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; overflow-wrap: anywhere; }
.pcard .btn { align-self: flex-start; }
.pcard .btn.copied { color: var(--lime); border-color: var(--lime); }
.prompts-list { display: grid; gap: 14px; }

/* Danh mục */
.cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(135deg, hsl(var(--h) 70% 50% / .16), transparent 70%), var(--surface); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); overflow: hidden; }
.cat:hover { border-color: hsl(var(--h) 70% 60% / .6); transform: translateY(-2px); }
.cat-name { font: 800 1.2rem var(--f-head); }
.cat-n { grid-row: 2; font: .78rem var(--f-mono); color: var(--ink-3); }
.cat .ic { grid-row: 1 / 3; grid-column: 2; color: var(--ink-3); }

/* Bước */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 26px 22px 8px 0; }
.steps li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); }
.step-tc { display: block; font: 700 .8rem var(--f-mono); color: var(--rec); margin-bottom: 10px; letter-spacing: .06em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.perks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.perk { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.perk .ic { width: 26px; height: 26px; color: var(--lime); margin-bottom: 14px; }
.perk p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 48px 20px 0; font: 600 1.08rem var(--f-body); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--f-mono); color: var(--rec); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; margin: 0; color: var(--ink-2); max-width: 64ch; }

.cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px; border-radius: 26px; background: var(--rec); color: #0B0B0F; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(11, 11, 15, .1); pointer-events: none; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(11, 11, 15, .75); }
.cta .btn-primary { background: #0B0B0F; color: var(--ink); border-color: #0B0B0F; }
.cta .btn-primary:hover { background: #1B1B24; box-shadow: none; }
@media (max-width: 600px) { .cta { padding: 28px; } }

.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface); }
.empty-art { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--rec-soft); color: var(--rec); margin-bottom: 18px; }
.empty-art .ic { width: 34px; height: 34px; }
.empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 20px; }

/* Lọc */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; align-items: center; }
.select { min-height: 46px; padding: 8px 40px 8px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238D899C' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; cursor: pointer; }

/* Chi tiết */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; font-size: .85rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.detail { display: grid; gap: 36px; }
.detail > * { min-width: 0; }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.player { position: relative; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line-2); margin-bottom: 30px; aspect-ratio: 16 / 9; }
.player video, .player .cover { width: 100%; height: 100%; object-fit: contain; }
.player .cover-gen { aspect-ratio: auto; }
.player-sound { position: absolute; right: 14px; bottom: 14px; background: rgba(11, 11, 15, .72); backdrop-filter: blur(8px); }
.player-tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(11, 11, 15, .72); backdrop-filter: blur(8px); font: 600 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.detail-head { margin-bottom: 26px; }
.detail-head h1 { margin: 0 0 .3em; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.tabs { position: sticky; top: 68px; z-index: 20; display: flex; gap: 4px; padding: 6px; margin-bottom: 26px; background: rgba(21, 21, 28, .9); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background-color .15s, color .15s; min-height: 40px; }
.tabs a .ic { width: 17px; height: 17px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab-n { font: 700 .7rem var(--f-mono); background: var(--rec); color: #0B0B0F; border-radius: 999px; padding: 1px 7px; }
.js .panel[hidden] { display: none; }
.panel { margin-bottom: 28px; scroll-margin-top: 140px; }
.panel-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--rec-soft); border: 1px solid rgba(255, 91, 46, .3); border-radius: var(--r-sm); color: var(--ink); font-size: .95rem; }
.panel-note .ic { color: var(--rec); margin-top: 2px; }
.checks, .dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--lime); margin-top: 3px; }
.dots li { padding-left: 20px; position: relative; }
.dots li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.buy { position: sticky; top: 88px; }
.buy-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.buy-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.buy-act { display: grid; gap: 10px; margin-bottom: 22px; }
.meta { margin: 0 0 18px; border-top: 1px solid var(--line); }
.meta div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.meta dt { color: var(--ink-3); }
.meta dd { margin: 0; font: 600 .88rem var(--f-mono); }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust .ic { color: var(--lime); width: 18px; height: 18px; }
.buy-bar { display: none; }
@media (max-width: 1023px) {
  .buy { position: static; }
  .tabs { top: 68px; }
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(21, 21, 28, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); }
  body:has(.buy-bar) .foot { padding-bottom: 84px; }
}

/* Nội dung markdown */
.prose { max-width: 72ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose h2, .prose h3, .prose h4, .prose h5 { color: var(--ink); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--rec); }
.prose a { color: var(--lime); text-underline-offset: 3px; }
.prose code { overflow-wrap: anywhere; font: .86em var(--f-mono); background: var(--surface-3); color: var(--ink); padding: .12em .45em; border-radius: 6px; }
.prose pre { background: var(--bg-2); color: var(--ink); padding: 16px 18px; border-radius: var(--r-sm); overflow-x: auto; border: 1px solid var(--line); font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 0 0 1em; padding: 12px 18px; border-left: 3px solid var(--rec); background: var(--rec-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.prose hr { border: 0; border-top: 1px dashed var(--line-2); margin: 2em 0; }
.guide ol { counter-reset: g; list-style: none; padding: 0; }
.guide ol > li { counter-increment: g; position: relative; padding-left: 40px; margin-bottom: .8em; }
.guide ol > li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--rec); font: 700 .78rem var(--f-mono); }

/* Biểu mẫu */
.field { margin-bottom: 18px; }
.field label, .label-row label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.label-row label { margin: 0; }
.field input:not([type=checkbox]):not([type=file]), .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 0; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 244, 50, .15); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer; }
.mono { font-family: var(--f-mono) !important; font-size: .88rem !important; }
.hint { margin: 6px 0 0; font-size: .84rem; color: var(--ink-3); }
.hint code { background: var(--surface-3); padding: 0 5px; border-radius: 4px; font: .9em var(--f-mono); }
.err { margin: 6px 0 0; font-size: .875rem; color: var(--danger); font-weight: 500; }
.err:empty { display: none; }
.req { color: var(--rec); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); background: rgba(255, 107, 107, .1); color: var(--danger); border: 1px solid rgba(255, 107, 107, .4); font-weight: 500; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--lime); }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-3); color: var(--ink-3); font: .85rem var(--f-mono); }
.prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; }
fieldset.box { min-width: 0; }
fieldset legend { font: 800 1.1rem var(--f-head); padding: 0 8px; margin-left: -8px; }

/* Giỏ hàng */
.checkout { display: grid; gap: 28px; }
@media (min-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } .checkout-form { position: sticky; top: 88px; } }
.citem { display: grid; grid-template-columns: 128px 1fr auto; gap: 18px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.citem .cover { border-radius: 10px; }
.citem h3 { margin: 0 0 4px; font-size: 1.05rem; }
.citem h3 a { text-decoration: none; }
.citem h3 a:hover { color: var(--rec); }
.citem .cover-gen { padding: 8px; }
.citem .cover-gen span { font-size: .8rem; }
@media (max-width: 520px) { .citem { grid-template-columns: 88px 1fr; } .citem > :last-child { grid-column: 1 / -1; justify-self: end; } }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin: 4px 0 16px; border-top: 1px dashed var(--line-2); }
.sum strong { font: 700 1.6rem var(--f-mono); color: var(--lime); font-variant-numeric: tabular-nums; }
.skeleton { height: 104px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0, var(--surface-3) 50%, var(--surface) 100%) 0 0 / 200% 100%; margin-bottom: 12px; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Đơn hàng */
.order-code { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-family: var(--f-mono); letter-spacing: .02em; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font: 600 .82rem var(--f-body); letter-spacing: 0; border: 1px solid currentColor; white-space: nowrap; }
.status .ic { width: 15px; height: 15px; }
.status-ok { background: var(--ok-bg); color: var(--ok-ink); }
.status-wait { background: var(--warn-bg); color: var(--warn-ink); }
.status-x { background: var(--x-bg); color: var(--x-ink); }
.order { display: grid; gap: 0; max-width: 920px; }
.pay { display: grid; gap: 28px; }
@media (min-width: 760px) { .pay { grid-template-columns: 300px 1fr; } }
.pay-qr img { width: 100%; height: auto; aspect-ratio: 1; background: #fff; border-radius: var(--r-sm); padding: 8px; }
.qr-missing { aspect-ratio: 1; display: grid; place-content: center; text-align: center; gap: 10px; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--ink-3); }
.qr-missing .ic { width: 48px; height: 48px; margin: 0 auto; }
.pay-qr p { margin-top: 10px; }
.pay-rows { margin: 0 0 16px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-row dt { color: var(--ink-3); font-size: .9rem; }
.pay-row dd { margin: 0; display: flex; align-items: center; gap: 6px; font: 700 .95rem var(--f-mono); text-align: right; word-break: break-all; }
.warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-sm); font-size: .92rem; }
.warn .ic { margin-top: 2px; }
.warn-text { color: var(--warn-ink); }
.waiting { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--ink-2); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); flex: none; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 1.4s ease-out infinite; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 244, 50, .55); } 100% { box-shadow: 0 0 0 12px transparent; } } }
.oitems { list-style: none; margin: 0; padding: 0; }
.oitems li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.oitems li > div { display: grid; }
.oitems a:not(.btn) { color: var(--lime); }
.lock { color: var(--ink-3); }

.contact-list { list-style: none; display: grid; gap: 4px; }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; text-decoration: none; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--rec); }

/* Chân trang */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 48px; overflow: hidden; }
.foot-big { font: 800 clamp(3.5rem, 15vw, 12rem)/.85 var(--f-head); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); padding-top: 40px; white-space: nowrap; user-select: none; }
.foot-in { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-brand p { color: var(--ink-3); margin-top: 10px; }
.foot-h { font: 700 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 12px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; color: var(--ink-2); }
.foot-list a:hover { color: var(--ink); }
.foot-list .ic { width: 16px; height: 16px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); max-width: calc(100vw - 32px); display: flex; gap: 12px; align-items: center; }
.toast[hidden] { display: none; }
.toast a { color: var(--rec); font-weight: 700; }
@media (max-width: 1023px) { body:has(.buy-bar) .toast { bottom: 90px; } }
@media (prefers-reduced-motion: no-preference) { .toast:not([hidden]) { animation: rise .22s var(--ease); } @keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } } }

/* ---------- Quản trị ---------- */
.adm { display: block; }
.adm-shell { display: grid; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); }
.adm-shell > * { min-width: 0; }
@media (min-width: 900px) { .adm-shell { grid-template-columns: 240px minmax(0, 1fr); } }
.adm-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .adm-side { position: sticky; top: 0; height: 100dvh; } }
@media (max-width: 899px) { .adm-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 10px; } .adm-side nav { flex-direction: row !important; overflow-x: auto; } .adm-side-foot { flex-direction: row !important; } }
.adm-side .brand { padding: 0 8px; }
.adm-side nav, .adm-side-foot { display: flex; flex-direction: column; gap: 2px; }
.adm-side-foot { margin-top: auto; }
.adm-side nav a, .adm-side-foot a, .adm-side-foot button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; white-space: nowrap; }
.adm-side nav a:hover, .adm-side-foot a:hover, .adm-side-foot button:hover { background: var(--surface-2); color: var(--ink); }
.adm-side nav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--rec); }
.adm-main { padding: 28px 16px 64px; min-width: 0; max-width: 1240px; }
@media (min-width: 900px) { .adm-main { padding: 36px 40px 80px; } }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.adm-head h1 { font-size: 2.2rem; margin: 0; }
.link-back { display: inline-block; margin-bottom: 6px; font-size: .9rem; color: var(--ink-3); text-decoration: none; }
.link-back:hover { color: var(--ink); }
.flash { padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid; margin-bottom: 20px; font-weight: 500; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: rgba(198, 244, 50, .35); }
.flash-err { background: rgba(255, 107, 107, .1); color: var(--danger); border-color: rgba(255, 107, 107, .4); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; }
.kpi span { color: var(--ink-3); font-size: .85rem; }
.kpi strong { font: 700 1.7rem var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: .82rem; color: var(--ink-3); }
.kpi em a { color: var(--lime); }
.todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.todo a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 36px; }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 700 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-act form { margin: 0; }
.tcell-skill { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.table td.small { min-width: 140px; }
.thumb { width: 80px; flex: none; border-radius: 8px; overflow: hidden; }
.thumb .cover-gen { padding: 6px; }
.thumb .cover-gen span { font-size: .6rem; }
.skill-form { display: grid; gap: 20px; }
@media (min-width: 1100px) { .skill-form { grid-template-columns: minmax(0, 1fr) 340px; } }
.sf-bar { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 14px 0; background: var(--bg); border-top: 1px solid var(--line); }
.sf-bar progress { flex: 1; max-width: 320px; height: 10px; accent-color: var(--lime); }
.cover-prev { border-radius: var(--r-sm); overflow: hidden; margin-bottom: 14px; }
.sf-side video.cover { border-radius: var(--r-sm); margin-bottom: 14px; object-fit: contain; background: #000; }
.filebox { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); word-break: break-all; }
.md-preview { margin-top: 10px; max-width: none; }
.danger-zone { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; border-color: rgba(255, 107, 107, .4); }
.danger-zone h2 { color: var(--danger); margin-bottom: 4px; }
.danger-zone p { margin: 0; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.settings { display: grid; gap: 0; }
.settings-pw { margin-top: 32px; }
.adm-login { display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(100%, 400px); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); }
.login .brand { margin-bottom: 20px; }
.login h1 { font-size: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tài khoản khách ---------- */
.auth { display: grid; place-items: center; }
.auth-box { width: min(100%, 440px); padding: 32px; }
.auth-box h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: .2em; }
.auth-box > .muted { margin-bottom: 22px; }
.auth-forgot { margin: 8px 0 0; text-align: right; font-size: .88rem; }
.auth-forgot a, .auth-switch a, .acc-note a:not(.btn) { color: var(--lime); }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--ink-3); font-size: .92rem; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--ink-3); font-size: .82rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.g_id_signin { display: flex; justify-content: center; min-height: 44px; }
.account { display: grid; gap: 24px; }
.account > * { min-width: 0; }
@media (min-width: 960px) { .account { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.owned { list-style: none; margin: 0; padding: 0; }
.owned li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.owned li:last-child { border-bottom: 0; }
.owned-cover { display: block; }
.owned-cover .cover { border-radius: 10px; height: auto; aspect-ratio: 16 / 10; }
.owned-cover .cover-gen { padding: 8px; }
.owned-cover .cover-gen span { font-size: .75rem; }
.owned-info { display: grid; gap: 2px; }
.owned-title { font-weight: 700; text-decoration: none; }
.owned-title:hover { color: var(--rec); }
.owned-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; }
.owned-links a { color: var(--lime); }
@media (max-width: 560px) { .owned li { grid-template-columns: 80px minmax(0, 1fr); } .owned li > .btn, .owned li > .muted { grid-column: 1 / -1; justify-self: end; } }
.olist { list-style: none; margin: 0; padding: 0; }
.olist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.olist li:last-child { border-bottom: 0; }
.olist li > div:first-child { display: grid; min-width: 0; }
.olist a { text-decoration: none; font-family: var(--f-mono); }
.olist a:hover { color: var(--rec); }
.olist-r { display: flex; align-items: center; gap: 12px; }
.olist-r .price { font-size: .95rem; }
.empty-sm { padding: 28px 20px; }
.account-side .box { padding: 20px; }
.account-side h2 { font-size: 1.1rem; }
.acc-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; margin: 0 0 20px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: .95rem; }
.acc-note .ic { color: var(--lime); }
.acc-note > span { flex: 1; min-width: 200px; }
p.acc-note:has(> .ic) { justify-content: flex-start; }
