/* ==========================================================================
   Chi tiết mẫu 2026 — Figma w5V7g1OqHrUtNj6PCyCHDA ("Chi tiết mẫu — Redesign", frame Template detail — Desktop 1440)
   Nền: page-pricing-2026.css (token, .pg26-btn, .pg26-eyebrow, reveal). Prefix riêng: .pd26-
   Breakpoint giống trang chủ 2026: 1279 / 1023 / 767. Không có frame mobile → theo quy tắc trang chủ (16px gutter).
   ========================================================================== */

.pd26 { --pd26-sub-h: 60px; background: var(--bg-surface); }
.pd26-wrap { width: 100%; max-width: 1200px; margin: 0 auto; }
.pd26-sec { position: relative; padding: 96px 24px; display: flex; flex-direction: column; align-items: center; gap: 40px; background: var(--bg-surface); scroll-margin-top: calc(var(--pd26-sub-h) + 8px); }
.pd26-sec > * { width: 100%; max-width: 1200px; }
.pd26-sec--canvas { background: var(--bg-canvas); }

.pd26-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 820px; }
.pd26-head--left { align-items: flex-start; text-align: left; }
.pd26-h2 { font-size: 34px; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); }
.pd26-h2 span { color: var(--text-brand); }
.pd26-lead { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }

/* ---------- 1. Breadcrumb + khung xem mẫu + thẻ thông tin ---------- */
.pd26-top { background: var(--bg-canvas); padding: 32px 24px 72px; }
.pd26 .pd26-crumbs ol { display: flex; flex-wrap: wrap !important; align-items: center; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--text-tertiary); }
.pd26-crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd26-crumbs li + li::before { content: "/"; color: var(--text-tertiary); }
.pd26-crumbs a { color: var(--text-tertiary); transition: color .15s; }
.pd26-crumbs a:hover { color: var(--text-brand); }
.pd26-crumbs [aria-current] { font-weight: 700; color: var(--text-primary); }

.pd26-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
.pd26-gallery { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.pd26-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.pd26-devices { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); }
.pd26-devices button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; font: 600 13px/1.5 var(--font); color: var(--text-secondary); transition: background-color .15s, color .15s; }
.pd26-devices button:hover { color: var(--text-primary); }
.pd26-devices button.is-on { background: var(--bg-inverse); color: var(--text-inverse); }
.pd26-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }
.pd26-hint .pg26-ico { color: var(--icon-muted); }

.pd26-stage { display: flex; justify-content: center; }
.pd26-browser { position: relative; width: 100%; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-surface); box-shadow: 0 20px 48px rgba(0, 20, 54, .12); overflow: hidden; transition: width .3s ease-in-out; }
.pd26-browser[data-device="tablet"] { width: 53.34%; }
.pd26-browser[data-device="mobile"] { width: 27.09%; min-width: 220px; }
.pd26-browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-subtle); }
.pd26-browser__bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.pd26-browser__url { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 12px; border-radius: 999px; background: var(--bg-surface); font-size: 12px; line-height: 1.5; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd26-browser__url .pg26-ico { color: var(--text-success); }
.pd26-shot { position: relative; height: 550px; overflow: hidden; background: var(--bg-surface); outline: 0; }
.pd26-shot__img { display: block; width: 100%; height: auto; max-width: none; transition: opacity .2s; }
.pd26-shot.is-swap .pd26-shot__img { opacity: 0; }
.pd26-shot__empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--icon-muted); }
.pd26-live { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--bg-inverse); box-shadow: 0 8px 24px rgba(0, 20, 54, .25); font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; color: var(--text-inverse) !important; transition: background-color .15s; }
.pd26-live:hover { background: var(--bg-brand); }

.pd26-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pd26-thumb { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; font: 400 13px/1.5 var(--font); color: var(--text-tertiary); }
.pd26-thumb__img { position: relative; display: block; height: 104px; border-radius: 10px; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; background: var(--bg-surface); transition: outline-color .15s; }
.pd26-thumb__img img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.pd26-thumb:hover .pd26-thumb__img { outline-color: var(--border-strong); }
.pd26-thumb.is-on { font-weight: 600; color: var(--text-brand); }
.pd26-thumb.is-on .pd26-thumb__img { outline-color: var(--bg-brand); }

.pd26-info { position: sticky; top: calc(var(--c26-header-h, 72px) + 24px); display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--border-subtle); border-radius: 24px; background: var(--bg-surface); box-shadow: 0 20px 48px rgba(0, 20, 54, .10); }
.pd26-info__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd26-tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--bg-brand-subtle); font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--text-brand) !important; }
a.pd26-tag:hover { background: #DCE6FB; }
.pd26-tag--new { background: var(--bg-accent); color: var(--text-inverse) !important; }
.pd26-h1 { font-size: 32px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); }
.pd26-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-tertiary); }
.pd26-code strong { font-weight: 700; color: var(--text-primary); }
.pd26-copy { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--bg-surface); font: 500 12px/1.5 var(--font); color: var(--text-secondary); transition: border-color .15s, color .15s; }
.pd26-copy:hover { border-color: var(--border-strong); color: var(--text-primary); }
.pd26-copy.is-done { border-color: rgba(21, 128, 61, .35); color: var(--text-success); }
.pd26-info__lead { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.pd26-benefits { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.pd26-benefits li { display: flex; align-items: flex-start; gap: 12px; }
.pd26-benefits__tile { flex: none; display: inline-flex; padding: 8px; border-radius: 12px; background: var(--bg-brand-subtle); color: var(--text-brand); }
.pd26-benefits li > span:last-child { display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }
.pd26-benefits strong { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.pd26-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.pd26-stack li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg-canvas); font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--text-secondary); }
.pd26-stack .pg26-ico { color: var(--text-success); }
.pd26-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 14px; background: var(--bg-canvas); }
.pd26-price > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }
.pd26-price__num { display: flex; align-items: baseline; gap: 2px; color: var(--text-primary); }
.pd26-price__num strong { font-size: 26px; line-height: 1.5; font-weight: 800; letter-spacing: -.02em; }
.pd26-price__num span { font-size: 16px; font-weight: 700; }
.pd26-price__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; color: var(--text-brand) !important; }
.pd26-price__link:hover { color: var(--bg-brand-hover) !important; }
.pd26 .pd26-cta { padding: 15px 24px; border-radius: 10px; }
.pd26-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd26-btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-surface); font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap; color: var(--text-primary) !important; transition: background-color .15s, border-color .15s; }
.pd26-btn2:hover { background: var(--bg-canvas); border-color: var(--text-tertiary); }
.pd26-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.pd26-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--text-tertiary); }
.pd26-trust .pg26-ico { color: var(--icon-muted); }
.pd26-trust a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.pd26-trust a:hover { color: var(--text-brand, #1A56DB); }

/* ---------- 2. Thanh tab dính ---------- */
.pd26-subnav { position: sticky; top: calc(var(--c26-header-h, 72px) + 1px); z-index: 50; padding: 0 24px; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); transition: top .25s var(--ease-out), box-shadow .2s; }
body:has(.c26-header.is-hidden) .pd26-subnav { top: 0; }
.pd26-subnav.is-stuck { box-shadow: 0 6px 20px rgba(0, 20, 54, .06); }
.pd26-subnav__inner { position: relative; display: flex; gap: 32px; max-width: 1200px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.pd26-subnav__inner::-webkit-scrollbar { display: none; }
.pd26-subnav a { flex: none; padding: 18px 0 16px; font-size: 15px; font-weight: 500; line-height: 1.5; white-space: nowrap; color: var(--text-secondary); transition: color .15s; }
.pd26-subnav a:hover { color: var(--text-primary); }
.pd26-subnav a.is-on { font-weight: 700; color: var(--text-brand); }
.pd26-subnav__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w, 0); translate: var(--x, 0) 0; background: var(--bg-brand); transition: translate .25s var(--ease-out), width .25s var(--ease-out); }
.pd26-subnav:not(.is-ready) a.is-on { box-shadow: inset 0 -2px 0 var(--bg-brand); }

/* ---------- 3. Gợi ý triển khai ---------- */
.pd26-fit { padding: 80px 24px 64px; }
.pd26-fit__grid { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 64px; align-items: start; }
.pd26-fit__list { display: flex; flex-direction: column; gap: 12px; }
.pd26-fit__list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--bg-canvas); }
.pd26-fit__check { flex: none; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--bg-brand); color: var(--text-inverse); }
.pd26-fit__list li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.pd26-fit__list strong { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text-primary); }

/* ---------- 4. Mô tả tính năng ---------- */
.pd26-feat { gap: 48px; }
.pd26-feat .pd26-head { max-width: 760px; }
.pd26-feat__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pd26-feat__card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--bg-surface); }
.pd26-feat__head { display: flex; align-items: center; gap: 14px; }
.pd26-feat__tile { flex: none; display: inline-flex; padding: 10px; border-radius: 12px; background: var(--bg-brand-subtle); color: var(--text-brand); }
.pd26-feat__head h3 { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--text-primary); }
.pd26-badge { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pd26-badge--ok { background: var(--bg-subtle); color: var(--text-success); }
.pd26-badge--brand { background: var(--bg-brand-subtle); color: var(--text-brand); }
.pd26-badge--accent { background: var(--bg-accent-subtle); color: var(--text-accent); }
.pd26-feat__card ul { display: flex; flex-direction: column; gap: 10px; }
.pd26-feat__card li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.pd26-feat__card li .pg26-ico { margin-top: 2px; color: var(--text-success); }

/* ---------- 5. Quy trình ---------- */
.pd26-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd26-steps__list li { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 16px; background: var(--bg-canvas); }
.pd26-steps__icon { flex: none; display: inline-flex; padding: 10px; border-radius: 999px; background: var(--bg-surface); color: var(--text-brand); }
.pd26-steps__list li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }
.pd26-steps__list strong { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.pd26-steps__list li.is-first { background: var(--bg-brand); }
.pd26-steps__list li.is-first .pd26-steps__icon { background: var(--bg-brand-hover); color: var(--text-inverse); }
.pd26-steps__list li.is-first > span:last-child { color: var(--text-inverse-secondary); }
.pd26-steps__list li.is-first strong { color: var(--text-inverse); }

/* ---------- 6. Mẫu liên quan ---------- */
.pd26-rel { gap: 32px; }
.pd26-rel__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pd26-rel__all { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--text-brand) !important; }
.pd26-rel__all:hover { color: var(--bg-brand-hover) !important; }
.pd26-rel__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pd26-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd26-card__media { display: block; padding: 8px 8px 0; border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--bg-surface); overflow: hidden; transition: translate .2s var(--ease-out), box-shadow .2s; }
.pd26-card__media img { display: block; width: 100% !important; height: 200px !important; max-width: none; object-fit: cover; object-position: 50% 0; border-radius: 8px 8px 0 0; transition: object-position 6s linear; }
.pd26-card:hover .pd26-card__media { translate: 0 -4px; box-shadow: var(--shadow-md); }
.pd26-card:hover .pd26-card__media img { object-position: 50% 100%; }
.pd26-card__meta { display: flex; flex-direction: column; gap: 2px; }
.pd26-card__cat { font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; color: var(--text-brand); }
.pd26-card__title { font-size: 16px; font-weight: 700; line-height: 1.5; }
.pd26-card__title a { color: var(--text-primary); transition: color .15s; }
.pd26-card__title a:hover { color: var(--text-brand); }

/* ==========================================================================
   MOTION — frame "Motion spec — Scroll animation (Chi tiết mẫu)" + annotation từng section
   ========================================================================== */
/* Tải trang: timeline 3.5s chạy 1 lần (Figma Motion của frame trang) */
@keyframes pd26-in { from { opacity: 0; translate: var(--dx, 0) var(--dy, 10px); scale: var(--sc, 1); } }
.pd26-ld { animation: pd26-in .4s var(--ease-out) var(--d, 0ms) both; }
.pd26-toolbar.pd26-ld { --dy: 0; }
.pd26-browser.pd26-ld { --dy: 28px; animation-duration: .55s; }
.pd26-live.pd26-ld { --dy: 0; --sc: .85; animation-duration: .35s; animation-timing-function: cubic-bezier(.45, 1.45, .8, 1); }
.pd26-thumb.pd26-ld { --dy: 14px; }
.pd26-info.pd26-ld { --dx: 40px; --dy: 0; animation-duration: .55s; }

/* Cuộn tới: dùng [data-reveal] của page-pricing-2026.js */
.pg26-js .pd26 [data-reveal="right"] { translate: 16px 0; }
.pg26-js .pd26 [data-reveal="right"].is-in { translate: 0 0; }
.pg26-js .pd26-feat__card li { opacity: 0; transition: opacity .3s ease-out; transition-delay: calc(var(--delay, 0ms) + 200ms + var(--j) * 40ms); }
.pg26-js .pd26-feat__card.is-in li { opacity: 1; }
.pg26-js .pd26-steps__list li.is-first { background: #B3C9F5; transition: opacity .5s var(--ease-out), translate .5s var(--ease-out), background-color .4s ease-out .3s; }
.pg26-js .pd26-steps__list li.is-first.is-in { background: var(--bg-brand); }

@media (prefers-reduced-motion: reduce) {
  .pd26-ld { animation: none; }
  .pd26-browser, .pd26-subnav__bar, .pd26-card__media, .pd26-card__media img { transition: none; }
  .pg26-js .pd26-feat__card li { opacity: 1; transition: none; }
  .pg26-js .pd26-steps__list li.is-first { background: var(--bg-brand); transition: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1279px) {
  .pd26-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .pd26-info { padding: 28px; }
  .pd26-fit__grid { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; }
  .pd26-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .pd26-layout { grid-template-columns: 1fr; }
  .pd26-info { position: static; }
  .pd26-fit__grid { grid-template-columns: 1fr; gap: 32px; }
  .pd26-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .pd26 { --pd26-sub-h: 52px; }
  .pd26-sec, .pd26-fit { padding: 64px 16px; gap: 32px; }
  .pd26-top { padding: 16px 16px 48px; }
  .pd26 .pd26-crumbs ol { margin-bottom: 16px; font-size: 13px; gap: 6px; }
  .pd26-crumbs li { flex: none; gap: 6px; max-width: 100%; }
  .pd26-crumbs [aria-current] { display: block; max-width: calc(100vw - 52px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pd26-layout { gap: 24px; }
  .pd26-hint { display: none; }
  .pd26-toolbar { display: none; }
  .pd26-devices button { flex: 1; justify-content: center; padding: 7px 8px; }
  .pd26-browser { border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 20, 54, .12); }
  .pd26-browser[data-device="tablet"] { width: 78%; }
  .pd26-browser[data-device="mobile"] { width: 56%; min-width: 0; }
  .pd26-browser__bar { padding: 10px 12px; gap: 6px; }
  .pd26-browser__bar i { width: 8px; height: 8px; }
  .pd26-shot { height: 420px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .pd26-live { left: 12px; bottom: 12px; padding: 8px 14px; font-size: 13px; }
  .pd26-thumbs { gap: 8px; }
  .pd26-thumb { font-size: 12px; gap: 6px; }
  .pd26-thumb__img { height: 64px; border-radius: 8px; }
  .pd26-info { padding: 24px 20px; border-radius: 20px; gap: 18px; }
  .pd26-h1 { font-size: 26px; }
  .pd26-price__num strong { font-size: 24px; }
  .pd26-btn2 { font-size: 14px; padding: 12px 8px; }
  .pd26-subnav { padding: 0 16px; }
  .pd26-subnav__inner { gap: 24px; }
  .pd26-subnav a { padding: 14px 0 12px; font-size: 14px; }
  .pd26-h2 { font-size: 28px; }
  .pd26-feat { gap: 32px; }
  .pd26-feat__grid { grid-template-columns: 1fr; gap: 16px; }
  .pd26-feat__card { padding: 20px; gap: 14px; }
  .pd26-feat__head { flex-wrap: wrap; gap: 12px; }
  .pd26-feat__head h3 { font-size: 17px; flex-basis: calc(100% - 56px); }
  .pd26-feat__head .pd26-badge { margin-left: 52px; }
  .pd26-feat__card li { font-size: 14px; }
  .pd26-steps__list { grid-template-columns: 1fr; gap: 12px; }
  .pd26-steps__list li { padding: 16px; }
  .pd26-rel__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pd26-rel__grid { gap: 20px 12px; }
  .pd26-card { gap: 10px; }
  .pd26-card__media { padding: 6px 6px 0; border-radius: 12px; }
  .pd26-card__media img { height: 140px !important; }
  .pd26-card__title { font-size: 14px; }
  .pd26-card__cat { font-size: 10px; }
}

/* khung co về Mobile: nhãn demo gọn trong khung hẹp */
.pd26-browser[data-device="mobile"] .pd26-live { left: 12px; right: 12px; bottom: 12px; justify-content: center; padding: 8px 12px; font-size: 13px; }
.pd26-browser[data-device="mobile"] .pd26-live .pg26-ico:last-child { display: none; }
