/* ============================================================
   Bảng giá (trang tổng hợp đa dịch vụ) — themesieuviet / Win Ora
   CSS thật (tailwind.css build sẵn thiếu nhiều utility). Namespace pg-*.
   Accent DUY NHẤT: var(--site-primary…). Đỏ #e31d22 chỉ cho badge/giá.
   Glass đồng bộ header/footer: alpha .55–.74, blur 16–20px, saturate 155–160%.

   GIỮ NGUYÊN .pricing-hero — header.css cấp padding-top 120px cho nó.
   FAQ dùng component chung (.faq-*, app.css + app.js) — chỉ set khoảng section.
   ============================================================ */

.pg-page { color: #0f172b; background: #fff; overflow-x: clip; }
.pg-page section { position: relative; }

/* Icon partial khai fill="none" + stroke-width nhưng KHÔNG khai stroke → cấp màu nét ở đây. */
.pg-page svg[fill="none"] { stroke: currentColor; }

/* ---- Reveal (gate .pg-anim; no-JS / reduced-motion → hiện đủ) ---- */
.pg-anim [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.pg-anim [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .pg-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .pg-page * { animation: none !important; }
}

/* ---- Nhịp section + giao thoa nền fade về trắng (liquid-glass §4b) ---- */
.pg-sect { padding: 72px 0; }
.pg-sect--tight { padding: 48px 0; }
.pg-soft {
    background:
        linear-gradient(180deg,
            rgba(var(--site-primary-rgb, 220, 38, 38), 0) 0,
            rgba(var(--site-primary-rgb, 220, 38, 38), .045) 130px,
            rgba(var(--site-primary-rgb, 220, 38, 38), .045) calc(100% - 130px),
            rgba(var(--site-primary-rgb, 220, 38, 38), 0) 100%),
        #ffffff;
}

/* ---- Pill · heading · lead ---- */
.pricing-pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 30px; padding: 0 14px; border-radius: 999px;
    background: rgba(var(--site-primary-rgb, 220, 38, 38), .09);
    border: 1px solid rgba(var(--site-primary-rgb, 220, 38, 38), .18);
    color: var(--site-primary, #dc2626);
    font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.pg-h2 {
    margin: 0; color: #0f172b; font-weight: 900; letter-spacing: -.01em;
    font-size: clamp(26px, 2.9vw, 36px); line-height: 1.16; text-wrap: balance;
}
.pg-h2 em { color: var(--site-primary, #dc2626); font-style: normal; }
.pg-lead { margin: 12px 0 0; color: #475569; font-size: 15.5px; line-height: 1.7; max-width: 64ch; }
.pg-head { max-width: 760px; }
.pg-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pg-head--center .pg-lead { margin-left: auto; margin-right: auto; }
.pg-head .pricing-pill { margin-bottom: 14px; }

/* ---- Link · button · focus ---- */
.pg-link {
    display: inline-flex; align-items: center; gap: 7px; border-radius: 6px;
    color: var(--site-primary, #dc2626); font-size: 14px; font-weight: 700; text-decoration: none;
}
.pg-link:hover { color: var(--site-primary-dark, #b91c1c); text-decoration: underline; }
.pg-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.pg-link:hover svg { transform: translateX(3px); }

.pg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 12px;
    border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
    font-size: 14.5px; font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.pg-btn--primary {
    background: linear-gradient(135deg, var(--site-primary-light, #ef4444), var(--site-primary, #dc2626));
    color: #fff; box-shadow: 0 12px 26px rgba(var(--site-primary-rgb, 220, 38, 38), .32);
}
.pg-btn--primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 34px rgba(var(--site-primary-rgb, 220, 38, 38), .42); }
.pg-btn--ghost {
    background: #fff; color: var(--site-primary, #dc2626);
    border-color: rgba(var(--site-primary-rgb, 220, 38, 38), .35);
}
.pg-btn--ghost:hover { transform: translateY(-2px); border-color: var(--site-primary, #dc2626); }

.pg-link:focus-visible,
.pg-btn:focus-visible,
.pricing-cta a:focus-visible {
    outline: 3px solid rgba(var(--site-primary-rgb, 220, 38, 38), .45);
    outline-offset: 2px;
}

/* ---- Fallback khi trình duyệt không hỗ trợ backdrop-filter ---- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pg-offer, .pg-tile, .pg-row, .pg-combo, .pg-trust {
        background: rgba(255, 255, 255, .93) !important;
    }
}

/* =========================================================================
   1) HERO — editorial split (giữ nguyên nội dung)
   ========================================================================= */
.pricing-hero {
    /* padding-top do header.css (.pricing-hero → 120px) quản lý — nguồn duy nhất */
    padding-bottom: 76px;
    overflow: hidden;
    background:
        radial-gradient(1000px 440px at 88% -8%, rgba(var(--site-primary-rgb, 220, 38, 38), .16), transparent 60%),
        radial-gradient(760px 380px at 4% 8%, rgba(var(--site-primary-rgb, 220, 38, 38), .08), transparent 58%),
        linear-gradient(180deg, #fbf7f7 0%, #f7eff0 60%, #fdf7f7 100%);
}
.pricing-hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 42%;
    background: linear-gradient(180deg, transparent, #ffffff); pointer-events: none; z-index: 0;
}
.pg-hero__grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
.pg-hero__title {
    margin: 18px 0 0; color: #11213d; font-weight: 900; letter-spacing: -.015em;
    font-size: clamp(30px, 3.3vw, 42px); line-height: 1.12; text-wrap: balance;
}
.pg-hero__title span { color: var(--site-primary, #dc2626); }
.pg-hero__desc { margin: 16px 0 0; color: #475569; font-size: 16px; line-height: 1.7; max-width: 56ch; }
.pg-hero__points { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; }
.pg-hero__points > span {
    display: inline-flex; align-items: center; gap: 10px;
    color: #334155; font-size: 14.5px; font-weight: 600;
}
.pg-hero__check {
    display: inline-flex; width: 21px; height: 21px; flex: 0 0 auto;
    align-items: center; justify-content: center; border-radius: 999px;
    color: var(--site-primary, #dc2626); background: #fff;
    border: 1px solid rgba(var(--site-primary-rgb, 220, 38, 38), .22);
    box-shadow: 0 6px 14px rgba(var(--site-primary-rgb, 220, 38, 38), .13);
}
.pg-hero__check svg { width: 12px; height: 12px; }
.pg-hero__art { display: flex; justify-content: center; }
.pg-hero__art img { display: block; width: 100%; max-width: 380px; height: auto; }

@media (min-width: 1024px) {
    .pg-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; }
    .pg-hero__art { justify-content: flex-end; }
}

/* =========================================================================
   2) THIẾT KẾ WEBSITE — offer split (2 hướng, 1 hướng được đề xuất)
   ========================================================================= */
.pg-offers { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; align-items: start; }
.pg-offer {
    position: relative; display: flex; flex-direction: column; height: 100%;
    border-radius: 22px; padding: 30px 28px;
    background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .74);
    box-shadow: 0 12px 34px rgba(15, 23, 43, .07), inset 0 1px 0 rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    transition: transform .24s ease, box-shadow .24s ease;
}
.pg-offer:hover { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(15, 23, 43, .1); }
.pg-offer--pick {
    padding: 36px 30px;
    background:
        radial-gradient(480px 320px at 100% 0, rgba(var(--site-primary-rgb, 220, 38, 38), .14), transparent 62%),
        rgba(255, 255, 255, .68);
    border: 1.5px solid rgba(var(--site-primary-rgb, 220, 38, 38), .32);
    box-shadow: 0 24px 56px rgba(var(--site-primary-rgb, 220, 38, 38), .17), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.pg-offer__badge {
    align-self: flex-start; margin-bottom: 16px;
    display: inline-flex; min-height: 28px; align-items: center; padding: 0 14px; border-radius: 8px;
    color: #fff; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
    background: linear-gradient(135deg, #ed1c24, #e31d22);
    box-shadow: 0 10px 22px rgba(227, 29, 34, .32);
}
.pg-offer__name { margin: 0; color: #0f172b; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.pg-offer__desc { margin: 10px 0 0; color: #64748b; font-size: 13.8px; line-height: 1.6; }
.pg-offer__price {
    margin: 20px 0 4px; color: var(--site-primary, #dc2626);
    font-size: 26px; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.pg-offer__note { color: #94a3b8; font-size: 12.5px; font-weight: 600; }
.pg-offer__list { display: grid; gap: 12px; margin: 22px 0 24px; padding: 0; list-style: none; }
.pg-offer__list li { display: flex; align-items: flex-start; gap: 11px; color: #334155; font-size: 13.6px; line-height: 1.5; }
.pg-offer__check {
    display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px;
    align-items: center; justify-content: center; border-radius: 999px;
    background: rgba(var(--site-primary-rgb, 220, 38, 38), .1); color: var(--site-primary, #dc2626);
}
.pg-offer__check svg { width: 12px; height: 12px; }
.pg-offer__cta { margin-top: auto; }
.pg-offer__cta .pg-btn { width: 100%; }

@media (min-width: 900px) { .pg-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* =========================================================================
   3) GIẢI PHÁP PHẦN MỀM — bento 1 lớn + 3 nhỏ
   ========================================================================= */
.pg-bento { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.pg-tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    border-radius: 20px; padding: 24px; text-decoration: none;
    background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .74);
    box-shadow: 0 10px 28px rgba(15, 23, 43, .07), inset 0 1px 0 rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    transition: transform .25s ease, box-shadow .25s ease;
}
.pg-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 43, .11); }
.pg-tile__ico {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, var(--site-primary-light, #ef4444), var(--site-primary, #dc2626));
    box-shadow: 0 8px 18px rgba(var(--site-primary-rgb, 220, 38, 38), .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pg-tile__ico svg { width: 24px; height: 24px; }
.pg-tile h3 { margin: 16px 0 6px; color: #0f172b; font-size: 16.5px; font-weight: 800; }
.pg-tile p { margin: 0; color: #64748b; font-size: 13.6px; line-height: 1.6; }
.pg-tile__price { margin-top: 16px; color: #64748b; font-size: 13px; font-weight: 700; }
.pg-tile__price b { color: var(--site-primary, #dc2626); font-weight: 900; }
.pg-tile__go { margin-top: auto; padding-top: 18px; }

.pg-tile--big {
    padding: 32px;
    background:
        radial-gradient(520px 340px at 100% 100%, rgba(var(--site-primary-rgb, 220, 38, 38), .13), transparent 62%),
        rgba(255, 255, 255, .66);
    border-color: rgba(var(--site-primary-rgb, 220, 38, 38), .2);
    box-shadow: 0 18px 46px rgba(var(--site-primary-rgb, 220, 38, 38), .1), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.pg-tile--big .pg-tile__ico { width: 58px; height: 58px; border-radius: 16px; }
.pg-tile--big .pg-tile__ico svg { width: 28px; height: 28px; }
.pg-tile--big h3 { margin-top: 20px; font-size: 23px; font-weight: 900; letter-spacing: -.01em; }
.pg-tile--big p { font-size: 14.6px; line-height: 1.7; color: #475569; }

@media (min-width: 700px) {
    .pg-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-tile--big { grid-column: span 2; }
}
@media (min-width: 1024px) {
    .pg-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); }
    .pg-tile--big { grid-column: 1; grid-row: 1 / span 2; }
    .pg-tile--wide { grid-column: 2 / span 2; grid-row: 2; }
}

/* =========================================================================
   4) QUẢNG CÁO & SOCIAL — ledger hàng ngang
   ========================================================================= */
.pg-rows { display: grid; gap: 12px; margin-top: 36px; }
.pg-row {
    display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center;
    border-radius: 16px; padding: 18px 20px;
    background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .74);
    box-shadow: 0 8px 22px rgba(15, 23, 43, .06), inset 0 1px 0 rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(16px) saturate(158%); backdrop-filter: blur(16px) saturate(158%);
    transition: transform .25s ease, box-shadow .25s ease;
}
.pg-row:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 23, 43, .1); }
.pg-row__ico {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: rgba(var(--site-primary-rgb, 220, 38, 38), .1); color: var(--site-primary, #dc2626);
}
.pg-row__ico svg { width: 23px; height: 23px; }
.pg-row h3 { margin: 0 0 3px; color: #0f172b; font-size: 15.8px; font-weight: 800; }
.pg-row p { margin: 0; color: #64748b; font-size: 13.2px; line-height: 1.55; }
.pg-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 10px; }
.pg-row__price { color: #64748b; font-size: 13px; font-weight: 800; }

@media (min-width: 940px) {
    .pg-row { grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, 190px) minmax(0, 130px); gap: 20px; }
    .pg-row__meta { display: contents; }
    .pg-row__price { justify-self: end; text-align: right; }
    .pg-row .pg-link { justify-self: end; }
}

/* =========================================================================
   5) NÊN BẮT ĐẦU TỪ ĐÂU — 2 combo lệch cỡ
   ========================================================================= */
.pg-combos { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; align-items: start; }
.pg-combo {
    display: flex; flex-direction: column; height: 100%;
    border-radius: 22px; padding: 28px;
    background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .74);
    box-shadow: 0 12px 34px rgba(15, 23, 43, .07), inset 0 1px 0 rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.pg-combo--lead {
    padding: 34px 32px;
    background:
        radial-gradient(520px 320px at 0 0, rgba(var(--site-primary-rgb, 220, 38, 38), .1), transparent 62%),
        rgba(255, 255, 255, .66);
    border-color: rgba(var(--site-primary-rgb, 220, 38, 38), .22);
}
.pg-combo__who { color: var(--site-primary, #dc2626); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.pg-combo h3 { margin: 10px 0 8px; color: #0f172b; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.pg-combo--lead h3 { font-size: 24px; }
.pg-combo p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.65; }
.pg-combo__parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; }
.pg-combo__part {
    display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .74); border: 1px solid rgba(var(--site-primary-rgb, 220, 38, 38), .16);
    color: #334155; font-size: 12.8px; font-weight: 700; text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.pg-combo__part:hover { border-color: var(--site-primary, #dc2626); color: var(--site-primary, #dc2626); }
.pg-combo__cta { margin-top: auto; }

@media (min-width: 940px) { .pg-combos { grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: 24px; } }

/* =========================================================================
   6) CAM KẾT — dải trust ngang
   ========================================================================= */
.pg-trust {
    display: grid; grid-template-columns: 1fr; gap: 4px;
    padding: 12px; border-radius: 22px;
    background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .74);
    box-shadow: 0 14px 40px rgba(15, 23, 43, .08), inset 0 1px 0 rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.pg-trust__cell { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 16px; }
.pg-trust__ico {
    display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px;
    background: rgba(var(--site-primary-rgb, 220, 38, 38), .1); color: var(--site-primary, #dc2626);
}
.pg-trust__ico svg { width: 21px; height: 21px; }
.pg-trust__title { color: #0f172b; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.pg-trust__text { margin-top: 3px; color: #64748b; font-size: 12.8px; }

@media (min-width: 700px) { .pg-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .pg-trust { grid-template-columns: repeat(4, 1fr); }
    .pg-trust__cell + .pg-trust__cell::before {
        content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: #e6eaf0;
    }
}

/* =========================================================================
   7) FAQ — dùng component chung, chỉ set khoảng section
   ========================================================================= */
.pricing-faq { padding: 72px 0; }
.pricing-faq .faq-block__title { text-align: center; }

/* =========================================================================
   8) CTA cuối — panel accent + ảnh
   ========================================================================= */
.pricing-cta { padding: 0 0 78px; background: #fff; }
.pricing-cta-card {
    position: relative; overflow: hidden; border-radius: 26px; padding: 34px 30px;
    display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; text-align: center;
    background:
        radial-gradient(circle at 16% 50%, rgba(255, 255, 255, .16), transparent 26%),
        linear-gradient(135deg, #ed1c24 0%, #d70f17 100%);
    color: #fff; box-shadow: 0 28px 70px rgba(227, 29, 34, .24);
}
.pricing-cta-card h2 {
    margin: 0; color: #fff; font-weight: 900; line-height: 1.2; letter-spacing: -.01em;
    font-size: clamp(24px, 2.8vw, 34px); text-wrap: balance;
}
.pricing-cta-card p { margin: 12px 0 0; color: rgba(255, 255, 255, .88); font-size: 15.5px; line-height: 1.7; }
.pricing-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.pricing-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; min-width: 172px; padding: 0 26px; border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; font-size: 14.5px; font-weight: 800;
    text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.pricing-btn:hover { transform: translateY(-2px); color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); }
.pricing-btn--primary { border-color: #fff; background: #fff; color: #e31d22; }
.pricing-btn--primary:hover { background: #fff; color: #d70f17; }
.pricing-cta-card img { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }

@media (min-width: 940px) {
    .pricing-cta-card { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding: 40px 44px; text-align: left; }
    .pricing-cta-actions { justify-content: flex-start; }
}
@media (max-width: 767px) {
    .pg-sect { padding: 56px 0; }
    .pricing-faq { padding: 56px 0; }
    .pricing-cta { padding-bottom: 56px; }
    .pricing-btn { width: 100%; }
    .pg-row { grid-template-columns: 1fr; }
}
