/* ShopMuse — trang demo. Mobile trước: shop xem chủ yếu trên điện thoại. */
:root {
  --paper: #f5f1ea;
  --card: #fffdf9;
  --ink: #17140f;
  --ink-2: #3a342c;
  --muted: #6d655a;
  --line: #e3dccf;
  --line-2: #d3cabb;
  --accent: #d9442b;
  --accent-2: #b8351f;
  --accent-soft: #fbe3dc;
  --ok: #1f7a4d;
  --ok-soft: #dcefe4;
  --bad: #b3261e;
  --bad-soft: #f8dedb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(23 20 15 / 6%), 0 8px 24px -12px rgb(23 20 15 / 18%);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(245 241 234 / 88%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-6px); margin-left: -6px; }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.site-header .btn { margin-left: auto; }
@media (min-width: 880px) {
  .nav { display: flex; }
  .site-header .nav ~ .btn { margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .1s, border-color .15s;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.bad { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-2); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(36px, 8.5vw, 68px); font-weight: 800; margin: 18px 0 18px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* Hai khung điện thoại: gốc → ShopMuse */
.duo { position: relative; display: flex; justify-content: center; gap: 14px; padding: 8px 0; }
.phone {
  position: relative; width: min(44vw, 220px); aspect-ratio: 9 / 16;
  border-radius: 26px; overflow: hidden; background: #2a251f;
  box-shadow: 0 30px 60px -30px rgb(23 20 15 / 55%), 0 0 0 6px var(--card), 0 0 0 7px var(--line);
}
.phone:nth-child(2) { transform: translateY(28px); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .tag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgb(255 253 249 / 92%); color: var(--ink);
}
.phone.after .tag { background: var(--accent); color: #fff; }
.phone .ph { position: absolute; inset: 0; display: grid; place-items: end start; padding: 16px; color: rgb(255 255 255 / 85%); font-size: 13px; }
.phone.before .ph { background:
  radial-gradient(60% 40% at 50% 38%, #8e8172 0 30%, transparent 31%),
  linear-gradient(180deg, #4a4239, #2a251f); }
.phone.after .ph { background:
  radial-gradient(60% 40% at 50% 38%, var(--accent) 0 30%, transparent 31%),
  linear-gradient(180deg, #5a3a30, #2a1f1a); }
.duo .arrow {
  position: absolute; left: 50%; top: 46%; z-index: 3; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-weight: 700; box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.channels { padding: 18px 0; border-top: 1px solid var(--line); }
.channels .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.channels span:first-child { font-weight: 500; font-size: 14px; }

.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 14px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Gallery */
.gallery { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.sample { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
.sample .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sample figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 16; background: #2a251f; }
.sample video { width: 100%; height: 100%; object-fit: cover; }
.sample figcaption { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgb(255 253 249 / 92%); }
.sample figure.after figcaption { background: var(--accent); color: #fff; }
.sample .title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 4px 2px; font-weight: 600; }
.empty {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg);
  padding: 40px 24px; text-align: center; color: var(--muted);
}

/* Yêu cầu video */
.reqs { display: grid; gap: 24px; }
@media (min-width: 860px) { .reqs { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.checklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist.no li::before {
  background: var(--bad-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3261e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel h3 { font-size: 18px; margin-bottom: 16px; }

/* Bảng giá */
.plans { display: grid; gap: 14px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.plan.featured::after { content: "Phổ biến"; position: absolute; top: -11px; right: 18px; font-size: 12px; font-weight: 700; background: var(--ink); color: var(--paper); padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 17px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .meta { color: var(--ink-2); font-size: 15px; }
.plan .per { color: var(--muted); font-size: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

.final { text-align: center; padding: 80px 0; border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(30px, 6vw, 48px); font-weight: 800; max-width: 16em; margin: 0 auto 14px; }
.final p { color: var(--ink-2); margin-bottom: 28px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Form pilot ---------- */
.page-head { padding: 36px 0 24px; }
.page-head h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; }
.page-head p { margin-top: 10px; color: var(--ink-2); max-width: 40em; }
.form { display: grid; gap: 18px; padding-bottom: 64px; max-width: 820px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px; }
@media (min-width: 720px) { .card { padding: 28px; } }
.card > h2 { font-size: 20px; display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.card > h2 .n { font-size: 14px; color: var(--accent); font-weight: 700; }
.card > .hint { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font-size: 16px;
}
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(23 20 15 / 8%); }

.drop {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center;
  min-height: 150px; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--ink); background: #fffaf3; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { font-size: 16px; }
.drop span { font-size: 14px; color: var(--muted); }
.drop .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-size: 20px; font-weight: 700; }

.video-preview { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.video-preview video { width: 110px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #2a251f; }
.video-preview .meta { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.video-preview .meta strong { font-size: 15px; color: var(--ink); word-break: break-all; }

.thumbs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 14px; }
.thumb { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper); }
.thumb .select { min-height: 38px; font-size: 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 10px; }
.thumb .x {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgb(23 20 15 / 75%); color: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}
.thumb .idx { position: absolute; top: 6px; left: 6px; font-size: 12px; font-weight: 700; background: rgb(255 253 249 / 92%); padding: 2px 8px; border-radius: 999px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check + .check { margin-top: 14px; }

.err { color: var(--bad); font-size: 14px; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.alert.bad { background: var(--bad-soft); color: #7d1a14; }
.alert.ok { background: var(--ok-soft); color: #134d31; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.progress { display: grid; gap: 12px; }
.prog-item { display: grid; gap: 6px; font-size: 14px; }
.prog-item .row { display: flex; justify-content: space-between; gap: 12px; }
.prog-item .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.prog-item.done .bar i { background: var(--ok); }
.prog-item.fail .bar i { background: var(--bad); }

.success { text-align: center; padding: 56px 20px; }
.success .big { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 30px; font-weight: 700; }
.success h2 { font-size: 28px; margin-bottom: 10px; }
.success p { color: var(--ink-2); max-width: 30em; margin: 0 auto 8px; }

/* ---------- Trang kết quả ---------- */
.result-list { display: grid; gap: 18px; padding-bottom: 64px; }
.result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 16px; }
@media (min-width: 760px) { .result { grid-template-columns: 160px 1fr; padding: 20px; } }
.result .garment img { width: 100%; max-width: 160px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--paper); }
.result .garment .lbl { font-size: 14px; color: var(--muted); margin-top: 8px; }
.versions { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.version { display: grid; gap: 10px; align-content: start; }
.version video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #2a251f; }
.version .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.version .acts .btn { flex: 1 1 auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.new { background: var(--accent-soft); color: var(--accent-2); }
.pending { display: grid; place-items: center; text-align: center; aspect-ratio: 9 / 16; max-width: 240px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 14px; padding: 16px; }

/* ---------- Admin ---------- */
.admin { display: grid; gap: 18px; padding-top: 20px; padding-bottom: 48px; }
@media (min-width: 1000px) { .admin { grid-template-columns: 360px 1fr; align-items: start; } }
.admin .list { display: grid; gap: 8px; }
.admin .filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.row-item { display: grid; gap: 4px; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.row-item.on { border-color: var(--ink); box-shadow: var(--shadow); }
.row-item .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.row-item .sub { font-size: 13px; color: var(--muted); }
.detail { display: grid; gap: 16px; }
.detail h2 { font-size: 24px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .select { width: auto; min-height: 38px; font-size: 14px; }
.admin-garments { display: grid; gap: 14px; }
.ag { display: grid; gap: 12px; grid-template-columns: 110px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.ag img { width: 110px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.ag .res { display: flex; flex-wrap: wrap; gap: 10px; }
.ag .res figure { margin: 0; width: 120px; display: grid; gap: 4px; font-size: 12px; }
.ag .res video { width: 120px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #2a251f; }
.linkbox { display: flex; gap: 8px; }
.linkbox .input { font-size: 14px; min-height: 38px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Dùng thử + đăng nhập ---------- */
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.auth { display: grid; place-items: center; padding: 40px 0 72px; }
.auth-card {
  width: 100%; max-width: 480px; display: grid; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 22px; box-shadow: var(--shadow);
}
@media (min-width: 560px) { .auth-card { padding: 40px; } }
.auth-card .eyebrow { justify-self: start; }
.auth-card h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 800; }
.auth-card .lead { color: var(--ink-2); }
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 20px; border-radius: 999px;
  background: #fff; color: #1f1f1f; border: 1px solid #747775;
  font: 500 16px/1 "Roboto", var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.gbtn:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgb(0 0 0 / 15%); }
.gbtn svg { width: 20px; height: 20px; flex: none; }
.gbtn.disabled { opacity: .5; pointer-events: none; }
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (min-width: 640px) { .user-chip span { display: inline; } }

.dash { display: grid; gap: 18px; padding-bottom: 64px; max-width: 820px; }
.dash .form { padding-bottom: 0; }
.quota { display: grid; gap: 14px; }
.quota-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.quota .kicker { margin-bottom: 4px; }
.quota-num strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.quota-num span { color: var(--muted); }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.list-title { font-size: 20px; margin: 10px 0 12px; }
.projects { display: grid; gap: 10px; }
.project {
  display: grid; gap: 4px; position: relative; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .15s;
}
.project:hover { border-color: var(--ink); }
.project .top { display: flex; justify-content: space-between; gap: 10px; }
.project .sub { font-size: 14px; color: var(--muted); }
.project .go { font-size: 14px; font-weight: 600; margin-top: 6px; }
.row-item .top .pill { margin-left: 6px; font-size: 11px; padding: 1px 8px; }

/* ---------- Trang pháp lý ---------- */
.legal { max-width: 760px; padding: 36px 0 72px; }
.legal h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 10px 0 28px; }
.legal .summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 32px; }
.legal .summary h2 { font-size: 17px; margin: 0 0 10px; }
.legal .summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal nav.toc { margin-bottom: 32px; font-size: 15px; }
.legal nav.toc ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 4px; columns: 1; }
@media (min-width: 720px) { .legal nav.toc ol { display: block; columns: 2; column-gap: 32px; } .legal nav.toc li { margin-bottom: 4px; } }
.legal h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--card); white-space: nowrap; }
.legal a { color: var(--accent-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
