/* hvsc.vn – TRỤ CÔNG NGHỆ: trang CASE vuonannam.com (/cong-nghe/case-vuonannam/). Nạp sau pillar-tech.css bởi mu zz-hv-pillar-tech-case.php.
   Mọi lớp bắt đầu bằng .pc ; dùng token --pt-* nên tự đổi theo Sáng/Tối (html[data-theme]). Khung trình duyệt/điện thoại giữ tối đặc. */

/* ---------- Hero: khung trình duyệt + điện thoại ---------- */
.pc-vis { position: relative; margin: 0; padding-bottom: 34px; min-width: 0; }
.pc-frame { background: #07080C; border: 1px solid var(--pt-line2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.pc-frame__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0D0F16; border-bottom: 1px solid rgba(167,171,255,.16); }
.pc-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3F52; flex: none; }
.pc-frame__bar i:nth-child(1) { background: #FF5F57; } .pc-frame__bar i:nth-child(2) { background: #FEBC2E; } .pc-frame__bar i:nth-child(3) { background: #28C840; }
.pc-frame__url { margin-left: 8px; font: 500 12.5px/1 var(--pt-mono); color: #CFD3E3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-frame__url b { color: #7E859B; font-weight: 500; }
.pc-frame img { display: block; width: 100%; height: auto; }
.pc-phone { position: absolute; right: 12px; bottom: 0; width: 26%; max-width: 150px; border: 5px solid #07080C; border-radius: 20px; overflow: hidden; background: #07080C; box-shadow: 0 24px 50px -18px rgba(0,0,0,.75), 0 0 0 1px rgba(167,171,255,.3); aspect-ratio: 390 / 560; }
.pc-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pc-vis .pt-note { margin-top: 12px; }

/* ---------- Thanh số liệu ---------- */
.pc-stats { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .pc-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pc-stats { grid-template-columns: repeat(4, 1fr); } }
.pc-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 18px 18px 20px; background: var(--pt-panel); border: 1px solid var(--pt-line2); border-radius: var(--pt-r); }
.pc-stat h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
.pc-stat p:last-child { font-size: 14.5px; line-height: 1.55; color: var(--pt-ink2); }
.pc-stat--own { border-style: dashed; border-color: var(--pt-warn); }
.pc-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 11.5px/1.4 var(--pt-mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; }
.pc-tag--ok { color: var(--pt-ok); }
.pc-tag--own { color: var(--pt-warn); border-style: dashed; }
.pc-tag--txt { color: var(--pt-acc); }
.pc-ring { width: 104px; height: 104px; flex: none; }
.pc-ring .bg { fill: none; stroke: var(--pt-line2); stroke-width: 8; }
.pc-ring .arc { fill: none; stroke: var(--pt-ok); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50% 50%; }
.pc-ring text { fill: var(--pt-ink); font: 700 30px/1 var(--pt-mono); }
.pt-js .pc-ring .arc { stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1) .2s; }
.pt-js .pc-stat.is-in .pc-ring .arc { stroke-dashoffset: 0; }
.pc-big { font: 700 clamp(40px, 3vw + 18px, 56px)/1.05 var(--pt-mono); letter-spacing: -.03em; color: var(--pt-ok); margin: 6px 0 2px; }
.pc-big small { display: block; margin-top: 4px; font: 500 14px/1.3 var(--pt-mono); letter-spacing: 0; color: var(--pt-mute); }
.pc-big--own { color: var(--pt-warn); font-size: clamp(34px, 2.4vw + 16px, 48px); }
.pc-big small.pc-pre { margin: 0 0 2px; }
.pc-big--own small:last-child { margin-top: 6px; }
.pc-method { margin-top: 20px; max-width: 980px; font: 500 13px/1.7 var(--pt-mono); color: var(--pt-mute); }

/* ---------- Tóm tắt ---------- */
.pc-sum { display: grid; gap: 0; max-width: 980px; border: 1px solid var(--pt-line2); border-radius: var(--pt-r); background: var(--pt-panel); overflow: hidden; }
.pc-sum li { display: grid; gap: 4px; padding: 16px 18px; border-top: 1px solid var(--pt-line); }
.pc-sum li:first-child { border-top: 0; }
.pc-sum b { font: 700 12.5px/1.4 var(--pt-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pt-acc); }
.pc-sum span { font-size: 16.5px; line-height: 1.65; color: var(--pt-ink2); }
@media (min-width: 760px) { .pc-sum li { grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; } }

/* ---------- Bối cảnh (khối giấy) ---------- */
.pc-two { display: grid; gap: 32px; }
@media (min-width: 900px) { .pc-two { grid-template-columns: 1fr 1fr; gap: 56px; } }
.pc-h3 { font-size: 20px; line-height: 1.3; font-weight: 800; margin-bottom: 12px; }
.pc-two .pt-txt + .pt-txt { margin-top: 14px; }
.pc-list { display: grid; gap: 10px; }
.pc-list li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.65; }
.pc-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--pt-acc2); }
.pc-callout { margin-top: 20px; padding: 14px 16px; border: 1px dashed var(--pt-line2); border-left: 3px solid var(--pt-red); border-radius: 10px; font-size: 15.5px; line-height: 1.65; background: rgba(227,30,36,.05); }
.pc-callout b { font-weight: 700; }

/* ---------- Timeline ba giai đoạn ---------- */
.pc-tl { display: grid; gap: 18px; counter-reset: ph; position: relative; padding-left: 22px; }
.pc-tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--pt-line2) 0 7px, transparent 7px 13px); }
.pc-ph { position: relative; background: var(--pt-panel); border: 1px solid var(--pt-line2); border-radius: var(--pt-r); padding: 20px 20px 22px; min-width: 0; }
.pc-ph::before { content: ""; position: absolute; left: -22px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--pt-bg); border: 2px solid var(--pt-acc); box-shadow: 0 0 0 4px rgba(109,114,246,.18); }
.pc-ph__k { font: 700 12.5px/1.4 var(--pt-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pt-acc); }
.pc-ph__k span { display: block; margin-top: 2px; color: var(--pt-mute); font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: 13px; }
.pc-ph h3 { margin-top: 10px; font-size: 21px; line-height: 1.25; font-weight: 800; }
.pc-ph ul { display: grid; gap: 9px; margin-top: 14px; }
.pc-ph li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.6; color: var(--pt-ink2); }
.pc-ph li::before { content: "›"; position: absolute; left: 3px; top: -1px; color: var(--pt-acc); font: 700 17px/1.6 var(--pt-mono); }
.pc-ph__out { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--pt-line2); font: 600 13px/1.55 var(--pt-mono); color: var(--pt-ok); }
@media (min-width: 1024px) {
  .pc-tl { grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 28px 0 0; }
  .pc-tl::before { left: 6px; right: 6px; top: 6px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--pt-line2) 0 7px, transparent 7px 13px); }
  .pc-ph::before { left: 22px; top: -29px; }
}

/* ---------- Bảng số đo ---------- */
.pc-mets { display: grid; gap: 16px; }
@media (min-width: 860px) { .pc-mets { grid-template-columns: 1fr 1fr; gap: 22px; } }
.pc-met { background: var(--pt-panel); border: 1px solid var(--pt-line2); border-radius: var(--pt-r); padding: 18px 18px 8px; min-width: 0; }
.pc-met h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--pt-line); }
.pc-met h3 .mono { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--pt-acc); border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; }
.pc-met dl { margin: 0; }
.pc-met dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--pt-line); }
.pc-met dl > div:last-child { border-bottom: 0; }
.pc-met dt { font-size: 15px; line-height: 1.4; color: var(--pt-ink2); min-width: 0; }
.pc-met dd { margin: 0; display: flex; align-items: baseline; gap: 10px; flex: none; font: 700 17px/1.2 var(--pt-mono); color: var(--pt-ink); white-space: nowrap; }
.pc-met dd em { font: 600 11.5px/1.2 var(--pt-mono); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.pc-met dd em.ok { color: var(--pt-ok); } .pc-met dd em.warn { color: var(--pt-warn); }
.pc-notes { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 900px) { .pc-notes { grid-template-columns: repeat(3, 1fr); } }
.pc-note { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--pt-line2); border-radius: var(--pt-r); background: var(--pt-panel); min-width: 0; }
.pc-note p { font-size: 15px; line-height: 1.6; color: var(--pt-ink2); }
.pc-note--own { border-style: dashed; border-color: var(--pt-warn); }
.pc-limit { margin-top: 22px; max-width: 980px; color: var(--pt-ink2); }

/* ---------- Danh mục lớp máy chủ ---------- */
.pc-cat { max-width: 860px; }
.pc-cat .pt-term__body { min-height: 0; }

/* ---------- Bài học ---------- */
.pc-les { display: grid; gap: 16px; }
@media (min-width: 760px) { .pc-les { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pc-les { grid-template-columns: repeat(4, 1fr); } }
.pc-lesson { position: relative; padding: 20px 18px 22px; background: var(--pt-paper); border: 1px solid var(--pt-paper-line); border-radius: var(--pt-r); color: var(--pt-paper-ink); min-width: 0; }
.pc-lesson__n { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 8px; background: #121316; color: #fff; font: 700 13px/1 var(--pt-mono); }
.pc-lesson h3 { margin-top: 12px; font-size: 18px; line-height: 1.3; font-weight: 800; }
.pc-lesson p { margin-top: 8px; font-size: 15.5px; line-height: 1.65; color: var(--pt-paper-mute); }
.pc-lesson ~ .pc-callout, .pc-les + .pc-callout { margin-top: 24px; max-width: 900px; }

/* ---------- Sáng: khung giữ tối đặc, thẻ bài học ---------- */
html[data-theme="light"] .pc-frame, html[data-theme="light"] .pc-phone { color: #F3F1EC; }
html[data-theme="light"] .pc-stat, html[data-theme="light"] .pc-met, html[data-theme="light"] .pc-note, html[data-theme="light"] .pc-ph, html[data-theme="light"] .pc-sum { background: #fff; }
html[data-theme="light"] .pc-lesson { background: #fff; border-color: var(--pt-line2); }
html[data-theme="light"] .pc-callout { background: rgba(197,22,27,.05); }
html[data-theme="light"] .pc-ph::before { background: #fff; }
html[data-theme="light"] .pc-big { color: #137A47; }
html[data-theme="light"] .pc-big--own { color: var(--pt-warn); }

@media (prefers-reduced-motion: reduce) { .pt-js .pc-ring .arc { transition: none; stroke-dashoffset: 0; } }
@media (max-width: 420px) {
  .pc-met dd { font-size: 16px; gap: 6px; }
  .pc-met dt { font-size: 14.5px; }
  .pc-phone { right: 8px; width: 30%; }
}
.pc-vis .pt-note { padding-right: 32%; }
