/* Kho Prompt Vàng — thành phần: kho prompt, thẻ, bảng giá, hộp thoại, biểu mẫu */

/* ---------- Kho prompt & bộ lọc ---------- */
.library { padding: 100px 0 90px; }
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.lib-head h2 { font-size: clamp(28px, 3.3vw, 42px); margin-top: 12px; }
.toolbar { position: sticky; top: 68px; z-index: 30; background: rgba(251, 250, 247, .9); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-block: 1px solid var(--line); padding: 14px 0 12px; }
.toolbar-row { display: flex; gap: 10px; align-items: center; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: #d4a72c; box-shadow: 0 0 0 4px rgba(242, 183, 5, .18); }
.search > .ms { color: var(--faint); font-size: 22px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15.5px; }
.search kbd { font-family: var(--font); font-size: 12px; color: var(--faint); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }
.en-toggle { flex: none; height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14.5px; box-shadow: var(--sh-1); white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.en-toggle .flag { font-size: 18px; line-height: 1; }
.en-toggle:hover { border-color: #cdc8bb; }
.en-toggle.on { background: #172554; border-color: #172554; color: #fff; box-shadow: 0 12px 22px -12px rgba(23, 37, 84, .7); }
.selects { display: flex; gap: 10px; }
.select { height: 48px; padding: 0 38px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6678' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center / 16px; -webkit-appearance: none; appearance: none; font-size: 14.5px; font-weight: 500; box-shadow: var(--sh-1); cursor: pointer; }
.seg { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.seg::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.tab:hover { border-color: #cdc8bb; }
.tab .n { font-weight: 500; color: var(--faint); font-size: 12.5px; }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #cbd5e1); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.on .n { color: rgba(255, 255, 255, .6); }
.chips-wrap { position: relative; margin-top: 10px; }
.chips-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 48px; background: linear-gradient(90deg, rgba(251, 250, 247, 0), rgba(251, 250, 247, .95)); pointer-events: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-right: 48px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid transparent; background: rgba(14, 18, 32, .05); font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s; }
.chip .ms { font-size: 17px; color: var(--muted); }
.chip:hover { background: rgba(14, 18, 32, .09); }
.chip.on { background: #fff4cc; border-color: #f1d27a; color: #78350f; font-weight: 700; }
.chip.on .ms { color: #b45309; }
.result-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.result-count { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.en-callout { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 52px 16px 18px; margin-bottom: 22px; border-radius: 18px; background: linear-gradient(100deg, #eef2ff 0%, #fdf2f8 100%); border: 1px solid #dde3ff; }
.en-callout-flag { font-size: 30px; line-height: 1; }
.en-callout-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); }
.en-callout-text b { font-size: 15.5px; color: var(--ink); }
.en-callout-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 9px; color: var(--muted); display: grid; place-items: center; }
.en-callout-x:hover { background: rgba(14, 18, 32, .06); }

/* ---------- Thẻ prompt ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(14, 18, 32, .05), 0 26px 48px -16px rgba(14, 18, 32, .22); border-color: #dcd7cb; }
.card-cover { display: block; padding: 8px 8px 0; color: inherit; text-decoration: none; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 2px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #c7c3b9; }
.lvl { display: inline-flex; align-items: center; gap: 6px; }
.lvl i { display: inline-flex; align-items: flex-end; gap: 2px; }
.lvl i b { width: 3px; border-radius: 2px; background: #dcd8cd; }
.lvl i b:nth-child(1) { height: 6px; }
.lvl i b:nth-child(2) { height: 9px; }
.lvl i b:nth-child(3) { height: 12px; }
.lvl-1 i b:nth-child(1), .lvl-2 i b:nth-child(-n+2), .lvl-3 i b { background: #d97706; }
.en-badge { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: #1e3a8a; background: #e0e7ff; border-radius: 999px; padding: 2px 8px; }
.card-title { font-size: 16.5px; line-height: 1.38; font-weight: 700; letter-spacing: -.012em; }
.card-title a { color: inherit; text-decoration: none; }
.card-en { font-size: 13px; color: #1e40af; font-weight: 500; font-style: italic; }
.card-benefit { font-size: 14px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 18px; }
.price-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.price-tag .ms { font-size: 18px; }
.price-tag.free, .price-tag.open { color: var(--emerald); }
.price-tag.gift { color: var(--rose); }
.price-tag.vip { color: #b45309; }
.card-btns { display: flex; align-items: center; gap: 4px; }
.fav .ms { font-size: 22px; color: var(--faint); }
.fav.on .ms { color: #e11d48; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.card.sk { height: 400px; cursor: default; border-color: transparent; box-shadow: none; background: linear-gradient(90deg, #f0ede6 25%, #f8f6f1 37%, #f0ede6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
.card.sk:hover { transform: none; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Bìa (thumbnail) */
.cover { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background: radial-gradient(120% 95% at 100% 0%, color-mix(in srgb, var(--c2) 58%, transparent) 0%, transparent 58%), linear-gradient(155deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 42%, #070b18) 100%); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 24, 0) 35%, rgba(7, 11, 24, .6) 100%); }
.cv0::before { background: radial-gradient(rgba(255, 255, 255, .24) 1px, transparent 1.3px) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%); mask-image: linear-gradient(135deg, #000, transparent 75%); }
.cv1::before { background: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%); mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%); }
.cv2::before { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px); }
.cv3::before { background: repeating-radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .11) 0 1px, transparent 1px 22px); }
.cover-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cover-cat { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 4px 10px 4px 7px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58%; }
.cover-cat .ms { font-size: 15px; }
.cover-badges { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cover-badges .flag { font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.cover-mark { position: absolute; right: -10px; bottom: 26px; z-index: -1; opacity: .13; transform: rotate(-10deg); }
.cover-mark .ms { font-size: 128px; width: auto; }
.cover-icon { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); }
.cover-icon .ms { font-size: 23px; }
.cover-bottom { display: grid; gap: 4px; }
.cover-title { font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .66); }
.cover-label span:last-child { letter-spacing: .04em; }
.cover-lg { aspect-ratio: auto; min-height: 220px; border-radius: 18px; padding: 18px; }
.cover-lg .cover-title { font-size: 21px; -webkit-line-clamp: 3; }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.tag .ms { font-size: 13px; }
.tag-free { background: #d1fae5; color: #065f46; }
.tag-lead { background: #ffe4e6; color: #9f1239; }
.tag-basic { background: #e0f2fe; color: #075985; }
.tag-pro { background: #ede9fe; color: #5b21b6; }
.tag-vip { background: linear-gradient(90deg, #fde68a, #f2b705); color: #422006; box-shadow: 0 4px 12px -4px rgba(242, 183, 5, .7); }

.empty { text-align: center; padding: 64px 16px; border: 1px dashed #d8d3c7; border-radius: 20px; background: var(--surface); }
.empty-ico { width: 58px; height: 58px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--bg-soft); color: var(--muted); margin-bottom: 14px; }
.empty-ico .ms { font-size: 28px; }
.empty h3 { font-size: 19px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }
.more { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Bảng giá ---------- */
.countdown { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: -18px auto 30px; font-weight: 700; color: var(--rose); }
.countdown b { background: var(--night); color: #fff; border-radius: 8px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.plan-name .ms { font-size: 20px; color: #b45309; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; }
.plan-price b { font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.plan-price small { color: var(--muted); font-size: 14px; }
.plan-price s { color: var(--faint); font-size: 16px; }
.plan-sub { color: var(--muted); font-size: 14px; line-height: 1.55; min-height: 44px; }
.plan-save { align-self: flex-start; margin-top: 10px; font-size: 12px; font-weight: 700; color: #065f46; background: #d1fae5; border-radius: 999px; padding: 3px 10px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; font-size: 14px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); line-height: 1.5; }
.plan li .ms { font-size: 19px; color: var(--emerald); font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.plan .pack-select { margin-top: auto; margin-bottom: 10px; width: 100%; height: 44px; }
.plan > .btn { margin-top: auto; }
.plan .pack-select + .btn { margin-top: 0; }
.plan.best { background: linear-gradient(180deg, #111834 0%, #070b18 100%); color: #fff; border-color: #232c4d; box-shadow: 0 34px 70px -28px rgba(7, 11, 24, .7); }
.plan.best .plan-name { color: var(--gold-1); }
.plan.best .plan-name .ms { color: var(--gold-1); }
.plan.best .plan-sub, .plan.best .plan-price small, .plan.best .plan-price s { color: rgba(229, 231, 240, .62); }
.plan.best li { color: #e7e9f2; }
.plan.best li .ms { color: var(--gold-1); }
.plan.best .plan-save { background: rgba(242, 183, 5, .16); color: var(--gold-1); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(90deg, #fde68a, #f2b705); color: #422006; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; box-shadow: 0 10px 22px -10px rgba(242, 183, 5, .8); white-space: nowrap; }
.plan-flag .ms { font-size: 15px; }
.credit-note { margin-top: 10px; font-size: 13px; color: var(--gold-1); background: rgba(242, 183, 5, .12); border: 1px solid rgba(242, 183, 5, .25); border-radius: 10px; padding: 8px 10px; }
.combo-head { text-align: center; margin: 76px 0 26px; }
.combo-head h3 { font-size: 27px; }
.combo-head p { color: var(--muted); margin-top: 6px; }
.combo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.combo { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.combo:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.combo-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--night); color: var(--gold-1); }
.combo-ico .ms { font-size: 22px; }
.combo h4 { font-size: 15.5px; line-height: 1.3; letter-spacing: -.01em; }
.combo p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.combo-cats { display: flex; flex-wrap: wrap; gap: 5px; }
.combo-cats span { font-size: 11.5px; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.combo-price { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.combo-price b { font-size: 26px; letter-spacing: -.03em; }
.combo-price s { font-size: 13px; color: var(--faint); }
.combo.owned { opacity: .65; }
.compare-wrap { margin-top: 76px; overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); }
.compare table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14px; }
.compare caption { text-align: left; padding: 20px 20px 4px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
.compare thead th { font-size: 13px; font-weight: 700; color: var(--muted); }
.compare th.hl, .compare td.hl { background: #fffbeb; }
.compare thead th.hl { color: #78350f; }
.compare .ms { font-size: 20px; }
.compare .yes { color: var(--emerald); font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.compare .no { color: #cdc9bf; }
.compare tfoot td { font-weight: 800; font-size: 17px; color: var(--ink); border-bottom: 0; }
.guarantee { text-align: center; margin-top: 28px; font-weight: 700; }
.pay-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.pay-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pay-trust .ms { font-size: 19px; color: var(--ink-2); }

/* ---------- Hộp thoại ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 11, 24, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-panel { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; background: var(--bg); border-radius: 26px; box-shadow: var(--sh-3); animation: pop .25s var(--ease); overscroll-behavior: contain; }
.modal.sm .modal-panel { width: min(520px, 100%); }
.modal.md .modal-panel { width: min(780px, 100%); }
.modal-body { padding: 32px; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink-2); }
.modal-x:hover { background: #fff; }
body.no-scroll { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.m-center { text-align: center; }
.m-ico { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; margin-bottom: 16px; background: #fff4cc; color: #b45309; }
.m-ico .ms { font-size: 32px; }
.m-ico.ok { background: #d1fae5; color: var(--emerald); }
.m-ico.warn { background: #ffe4e6; color: var(--rose); }
.m-ico.info { background: #e0e7ff; color: #3730a3; }
.m-title { font-size: 24px; margin-bottom: 8px; letter-spacing: -.02em; }
.m-sub { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }

/* Chi tiết prompt */
.dt-head { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; padding-right: 44px; }
.dt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pill-sm { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill-sm .ms { font-size: 15px; }
.pill-en { background: #e0e7ff; border-color: #c7d2fe; color: #1e3a8a; }
.dt-info h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.22; margin-bottom: 10px; letter-spacing: -.025em; }
.dt-benefit { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.dt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.dt-tools .t { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--ink-2); font-weight: 500; }
.dt-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.dt-side { display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.panel-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.panel-h .ms { font-size: 18px; color: var(--ink-2); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding-left: 36px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--night); color: var(--gold-1); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.tip-box { display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fffbeb; border: 1px solid #fde68a; font-size: 14px; line-height: 1.6; color: #78350f; }
.tip-box .ms { color: #b45309; font-size: 21px; }
.dt-main { min-width: 0; }
.lang-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.lang-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.lang-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.en-head { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; background: #eef2ff; border: 1px solid #d7ddff; }
.en-title { font-weight: 800; font-size: 16.5px; color: #1e3a8a; letter-spacing: -.01em; }
.en-result { font-size: 13px; color: var(--muted); font-weight: 600; }
.sub-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-size: 14.5px; font-weight: 700; }
.sub-h .ms { font-size: 19px; color: #b45309; }
.vars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 500; color: var(--faint); }
.field input, .field textarea { width: 100%; height: 44px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: #d4a72c; box-shadow: 0 0 0 4px rgba(242, 183, 5, .16); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #b45309; flex: none; }
.prompt-card { margin-top: 18px; border-radius: 18px; overflow: hidden; border: 1px solid #1b2340; background: #0b1020; box-shadow: 0 18px 40px -24px rgba(7, 11, 24, .6); }
.prompt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: #11182e; border-bottom: 1px solid rgba(255, 255, 255, .06); color: rgba(229, 231, 240, .72); font-size: 12.5px; font-weight: 600; }
.prompt-card-head span { display: inline-flex; align-items: center; gap: 6px; }
.prompt-card-head .ms { font-size: 17px; }
.prompt-box { position: relative; margin: 0; padding: 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; color: #dfe3f2; max-height: 460px; overflow: auto; }
.prompt-box mark { border-radius: 5px; padding: 1px 4px; }
.prompt-box .v-empty { background: rgba(242, 183, 5, .18); color: var(--gold-1); }
.prompt-box .v-filled { background: rgba(52, 211, 153, .18); color: #a7f3d0; }
.prompt-box.locked { max-height: 250px; overflow: hidden; }
.prompt-box.locked .blur { display: block; margin-top: 8px; filter: blur(5px); opacity: .7; user-select: none; }
.prompt-box.locked::after { content: ""; position: absolute; inset: auto 0 0 0; height: 65%; background: linear-gradient(180deg, rgba(11, 16, 32, 0), #0b1020 82%); }
.lock-overlay { position: absolute; left: 50%; bottom: 20px; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font); font-size: 14px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 9px 16px; border-radius: 999px; }
.lock-overlay .ms { font-size: 18px; color: var(--gold-1); }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.action-bar .btn-gold { flex: 1 1 200px; }

/* Bậc thang mở khoá */
.ladder { display: grid; gap: 10px; }
.opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.opt:hover { border-color: #bdb7a8; transform: translateY(-1px); }
.opt-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-2); }
.opt-ico .ms { font-size: 21px; }
.opt-main b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; letter-spacing: -.01em; }
.opt-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.opt-price { text-align: right; }
.opt-price b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.opt-price small { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: #b45309; }
.opt-price small .ms { font-size: 15px; }
.opt.best { border-color: var(--gold); background: linear-gradient(180deg, #fffdf6, #fff6d6); box-shadow: 0 14px 32px -16px rgba(242, 183, 5, .7); }
.opt.best .opt-ico { background: var(--night); color: var(--gold-1); }
.opt.loading { opacity: .6; pointer-events: none; }
.secure-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.secure-line .ms { font-size: 16px; }

/* Biểu mẫu & tài khoản */
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list-mini { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.list-mini li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.list-mini .ms { color: #b45309; font-size: 19px; }
.upsell { margin-top: 22px; padding: 20px; border-radius: 20px; background: linear-gradient(180deg, #111834, #070b18); color: #fff; display: grid; gap: 10px; text-align: left; }
.upsell b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.upsell b .ms { color: var(--gold-1); }
.upsell .note { color: rgba(229, 231, 240, .68); }
.owned-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.owned-list span { display: inline-flex; align-items: center; gap: 4px; background: #d1fae5; color: #065f46; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 10px 4px 7px; }
.owned-list .ms { font-size: 16px; }
.done-box { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 14px; }

/* Thông báo nổi */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--night); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--sh-3); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ms { color: #34d399; font-size: 20px; }
.toast.err { background: #881337; }
.toast.err .ms { color: #fecdd3; }
.nudge { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(380px, calc(100% - 40px)); padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: pop .3s var(--ease); }
.nudge h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 30px 6px 0; }
.nudge h4 .ms { color: #b45309; }
.nudge p { font-size: 14px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.nudge .x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .combo-grid { grid-template-columns: repeat(3, 1fr); }
  .dt-head, .dt-body { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-demo { width: 100%; max-width: 560px; margin: 0 auto; }
  .demo-window { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .us-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-intro { position: static; }
  .how { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dt-head, .dt-body { grid-template-columns: 1fr; }
  .dt-side .panel + .panel { display: none; }
  .dt-head { padding-right: 40px; }
  .final-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: min(1200px, 100% - 32px); }
  .hide-sm { display: none !important; }
  .announce-in { gap: 8px; font-size: 12.5px; }
  .announce-tag, .announce-text, .lbl-long { display: none; }
  .announce-short, .lbl-short { display: inline; }
  .nav-in { height: 60px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text b { font-size: 15px; }
  .brand-text small { display: none; }
  .nav-actions .lbl { display: none; }
  .nav-actions .btn-sm { padding: 0 11px; }
  .hero h1 { font-size: 35px; }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .demo-float { display: none; }
  .demo-fields { grid-template-columns: 1fr; }
  .ai-row { gap: 8px 18px; margin-top: 28px; }
  .ai-row b { font-size: 15px; }
  .stat { padding: 18px 12px; gap: 10px; }
  .stat-ico { width: 38px; height: 38px; }
  .stat b { font-size: 21px; }
  .section, .library { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .features { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat { padding: 14px; gap: 12px; }
  .lib-head { flex-direction: column; align-items: flex-start; }
  .toolbar { position: static; }
  .toolbar-row { flex-wrap: wrap; }
  .search { flex-basis: 100%; height: 46px; }
  .en-toggle { height: 44px; padding: 0 12px; }
  .en-toggle .lbl { font-size: 13.5px; }
  .selects { flex: 1; min-width: 0; }
  .select { flex: 1; min-width: 0; height: 44px; font-size: 13.5px; padding-right: 30px; background-position: right 8px center; }
  .grid { grid-template-columns: 1fr; }
  .price-grid, .combo-grid { grid-template-columns: 1fr; }
  .plan.best { order: -1; }
  .en-callout { flex-wrap: wrap; }
  .en-callout-flag { display: none; }
  .modal { padding: 0; place-items: end center; }
  .modal-panel { border-radius: 24px 24px 0 0; max-height: 94vh; max-height: 94dvh; }
  .modal-body { padding: 22px 16px 24px; }
  .vars, .row2 { grid-template-columns: 1fr; }
  .opt { grid-template-columns: minmax(0, 1fr) auto; }
  .opt-ico { display: none; }
  .action-bar { position: sticky; bottom: -24px; z-index: 3; margin: 14px -16px -24px; padding: 12px 16px 16px; background: var(--bg); border-top: 1px solid var(--line); }
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(7, 11, 24, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; box-shadow: var(--sh-3); }
  .mobile-cta b { display: block; font-size: 14px; }
  .mobile-cta span { font-size: 12px; color: rgba(229, 231, 240, .65); }
  .nudge { left: 12px; bottom: 84px; width: calc(100% - 24px); }
  .toast { bottom: 92px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .typing { max-width: none; border-right: 0; }
}
