/* Top Shop — dashboard, bảng giá, checkout. Bổ sung cho style.css */

/* ---------- Truth line ---------- */
.truth {
  background: #1b1f24;
  color: #e9ecef;
  font-size: 14px;
  padding: 10px 0;
}
.truth .wrap { display: flex; gap: 10px; align-items: baseline; }
.truth b { color: #fff; font-weight: 700; white-space: nowrap; }
.truth span { color: #c6ccd4; }

/* ---------- Dashboard ---------- */
.dash {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.dash-head h3 { margin: 0; font-size: 15px; }
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2f9e6e;
  box-shadow: 0 0 0 3px rgba(47,158,110,.15);
}
.dot.stale { background: #b98900; box-shadow: 0 0 0 3px rgba(185,137,0,.15); }

.dash-body { padding: 18px; }

.dash-now {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.dash-now > div { background: var(--paper); padding: 12px 14px; }
.dash-now .k { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dash-now .v { font-size: 15px; font-weight: 600; }
.dash-now .v small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* steps rail */
.rail { list-style: none; margin: 0 0 18px; padding: 0; }
.rail li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px dashed #eceff2;
}
.rail li:last-child { border-bottom: 0; }
.rail .n {
  flex: 0 0 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: #eef0f3; color: #7b828c;
}
.rail .done .n { background: var(--accent-soft); color: var(--accent); }
.rail .active .n { background: var(--accent); color: #fff; }
.rail .txt { flex: 1; }
.rail .txt em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.rail .state { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rail .active .state { color: var(--accent); font-weight: 700; }

/* metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.metric .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metric .v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 3px; }
.metric .v.zero { color: var(--muted); }
.metric .s { font-size: 11px; color: var(--muted); margin-top: 2px; }

.note-line {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* việc đang chặn */
.blockers {
  margin: 0 0 16px;
  border: 1px solid #e8d9cf;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fdf8f4;
}
.blockers .k {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: #8c3b2f; margin-bottom: 8px; font-weight: 700;
}
.blockers ul { list-style: none; margin: 0; padding: 0; }
.blockers li {
  padding: 6px 0; border-bottom: 1px dashed #e8d9cf; font-size: 13px;
}
.blockers li:last-child { border-bottom: 0; }
.blockers li b { display: block; font-size: 13px; }
.blockers li span { color: var(--muted); font-size: 12px; }

/* nhật ký */
.journal {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--paper);
}
.journal .k {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.journal ul { list-style: none; margin: 0; padding: 0; }
.journal li {
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.journal li:last-child { border-bottom: 0; }
.journal time {
  display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.journal p { margin: 0 0 4px; color: var(--ink-soft); }
.journal .ev {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--muted);
  background: rgba(0,0,0,.04); padding: 1px 5px; border-radius: 3px;
  overflow-wrap: anywhere;
}
.journal .note-line { border-top: 0; padding-top: 4px; margin-top: 6px; }

/* bằng chứng thật */
.verified {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--paper);
}
.verified .k {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.verified ul { list-style: none; margin: 0; padding: 0; }
.verified li {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.verified li:last-child { border-bottom: 0; }
.verified .t { flex: 1 1 220px; }
.verified .ev {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--muted);
  background: rgba(0,0,0,.04); padding: 1px 5px; border-radius: 3px;
  overflow-wrap: anywhere;
}
.verified .note-line { border-top: 0; padding-top: 4px; margin-top: 6px; }

/* ---------- Pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.tier.featured { border-color: var(--accent); border-width: 2px; }
.tier .badge {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 10px;
}
.tier h3 { margin: 0 0 4px; font-size: 18px; }
.tier .p { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.tier .p .was { font-size: 15px; font-weight: 400; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.tier .sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.tier ul { margin: 0 0 18px; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.tier li { margin-bottom: 6px; }
.tier .btn { margin-top: auto; text-align: center; }
.tier .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* slots bar */
.slots { margin: 6px 0 12px; }
.slots .bar { height: 6px; background: #eef0f3; border-radius: 999px; overflow: hidden; }
.slots .bar i { display: block; height: 100%; background: var(--accent); width: 0; }
.slots .lbl { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- Checkout ---------- */
.checkout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.ck-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
}
.ck-panel h2 { font-size: 21px; margin: 0 0 4px; }
.ck-panel .sub { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

.choice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.choice:hover { background: #fbfcfd; }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice .cbody { flex: 1; }
.choice .cname { font-weight: 600; font-size: 15px; }
.choice .cdesc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice .cprice { font-weight: 700; font-size: 16px; white-space: nowrap; }

.ck-summary {
  border-top: 1px solid var(--line);
  margin-top: 16px; padding-top: 14px;
}
.ck-summary .row { display: flex; justify-content: space-between; font-size: 15px; padding: 5px 0; }
.ck-summary .row.total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

.qr-wrap { text-align: center; }
.qr-frame {
  width: 260px; height: 260px; margin: 0 auto 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.qr-frame canvas, .qr-frame img { max-width: 100%; height: auto; display: block; }
.qr-empty {
  width: 100%; height: 100%;
  border: 2px dashed #c7cdd5; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; padding: 10px;
}
.qr-empty small { font-weight: 400; font-size: 11px; }

.code-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f4f6f8; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px;
  font-family: ui-monospace, "DejaVu Sans Mono", monospace;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.copy-btn {
  font: inherit; font-size: 12px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 8px; cursor: pointer; color: var(--accent);
}
.copy-btn:hover { background: var(--accent-soft); }

.warn {
  border: 1px solid #e6c9c2; background: #fdf5f3;
  border-radius: 8px; padding: 12px 14px;
  font-size: 13px; color: #7c3527; margin-bottom: 14px;
}
.warn b { display: block; margin-bottom: 3px; }

.okbox {
  border: 1px solid #c6e0d2; background: #f3faf6;
  border-radius: 8px; padding: 12px 14px;
  font-size: 13px; color: #1f5a41;
}

.steps-mini { counter-reset: s; list-style: none; margin: 12px 0 0; padding: 0; }
.steps-mini li {
  counter-increment: s; position: relative;
  padding-left: 26px; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px;
}
.steps-mini li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: #eef0f3; color: #6b7381;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* support list */
.support-list { list-style: none; margin: 0; padding: 0; }
.support-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.support-list li:last-child { border-bottom: 0; }
.support-list .pending { color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .truth .wrap { flex-direction: column; gap: 2px; }
  .dash-now { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .qr-frame { width: 220px; height: 220px; }
  .verified li { flex-direction: column; gap: 2px; }
  .verified .t { flex: 1 1 auto; }
  .journal .ev, .verified .ev { display: inline-block; max-width: 100%; }
}

/* ---------- Hero card (số thật, thay ảnh bìa) ---------- */
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 28px -18px rgba(15,17,21,.35);
  max-width: 380px;
  margin-left: auto;
}
.hc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.hc-row:last-of-type { border-bottom: 0; }
.hc-k { font-size: 13px; color: var(--muted); }
.hc-v {
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.hc-v.zero { color: var(--muted); }
.hc-sep { height: 1px; background: var(--line); margin: 8px 0; }
.hc-note {
  margin: 12px 0 0; font-size: 11px; line-height: 1.55; color: var(--muted);
}
.hc-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; background: rgba(0,0,0,.04); padding: 1px 4px; border-radius: 3px;
}

/* ---------- Flow ---------- */
.flow {
  counter-reset: f; list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; gap: 0;
}
.flow li {
  counter-increment: f; position: relative;
  padding: 13px 0 13px 44px; border-bottom: 1px solid var(--line);
  font-size: 16px; color: var(--ink-soft);
}
.flow li:last-child { border-bottom: 0; }
.flow li::before {
  content: counter(f); position: absolute; left: 0; top: 13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow li b { color: var(--ink); }

@media (max-width: 860px) {
  .hero-card { max-width: none; margin: 8px 0 0; }
  .flow li { font-size: 15px; padding-left: 38px; }
}
