/* =========================================================
   OrangeSoft – Theme màu cam
   ========================================================= */
:root {
    --os-primary: #FF6A00;
    --os-primary-600: #E85D00;
    --os-primary-700: #C94F00;
    --os-accent: #FFB020;
    --os-soft: #FFF5EC;
    --os-soft-2: #FFE8D6;
    --os-dark: #1E1712;
    --os-text: #2A2522;
    --os-muted: #6E6660;
    --os-border: #F0E4DA;
    --os-radius: 18px;
    --os-shadow: 0 10px 30px rgba(255, 106, 0, .10);
    --os-shadow-lg: 0 24px 60px rgba(255, 106, 0, .18);
    --os-gradient: linear-gradient(135deg, #FF8A00 0%, #FF5A00 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--os-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--os-primary); text-decoration: none; }
a:hover { color: var(--os-primary-600); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; color: var(--os-dark); }

.text-orange { color: var(--os-primary) !important; }
.bg-orange { background: var(--os-primary) !important; }
.text-gradient { background: var(--os-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .6rem 1.25rem; }
.btn-lg { padding: .85rem 1.6rem; border-radius: 14px; font-size: 1.05rem; }
.btn-orange {
    background: var(--os-gradient); color: #fff; border: 0;
    box-shadow: 0 8px 20px rgba(255, 106, 0, .30);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-orange:hover, .btn-orange:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 106, 0, .38); filter: brightness(1.04); }
.btn-orange:active { transform: translateY(0); }
.btn-outline-orange { color: var(--os-primary); border: 2px solid var(--os-primary); background: #fff; }
.btn-outline-orange:hover { background: var(--os-primary); color: #fff; }
.btn:focus-visible { outline: 3px solid rgba(255, 106, 0, .4); outline-offset: 2px; }

/* ---------- Promo bar ---------- */
.promo-bar { background: var(--os-dark); color: #fff; font-size: .9rem; padding: .5rem 0; text-align: center; }
.promo-link { color: var(--os-accent); font-weight: 600; white-space: nowrap; }
.promo-link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(30, 23, 18, .08); }
.site-header .navbar { padding: .8rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.35rem; color: var(--os-dark); }
.brand:hover { color: var(--os-dark); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center;
    background: var(--os-gradient); color: #fff; font-size: 1.15rem; box-shadow: 0 6px 16px rgba(255, 106, 0, .35);
}
.site-header .nav-link { font-weight: 600; color: var(--os-text); padding: .5rem .8rem !important; border-radius: 10px; }
.site-header .nav-link:hover { color: var(--os-primary); background: var(--os-soft); }
.nav-phone { color: var(--os-dark); font-weight: 700; text-decoration: none; }
.nav-phone i { color: var(--os-primary); }

/* ---------- Common sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--os-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin: .6rem 0 1rem; }
.section-head p { color: var(--os-muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: var(--os-primary);
    background: var(--os-soft-2); padding: .4rem .85rem; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; }
.hero-sm { padding: 40px 0 80px; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(900px 500px at 90% -10%, rgba(255, 138, 0, .22), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(255, 176, 32, .18), transparent 60%),
        linear-gradient(180deg, #FFF9F4 0%, #fff 100%);
}
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.12; margin: 1.1rem 0 1.2rem; }
.hero-sub { font-size: 1.12rem; color: var(--os-muted); margin-bottom: 1.8rem; max-width: 560px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.hero-checks li { font-weight: 600; font-size: .95rem; }
.hero-checks i { color: var(--os-primary); margin-right: .25rem; }

.hero-visual { position: relative; padding: 20px; }
.mock-window { background: #fff; border-radius: 20px; box-shadow: var(--os-shadow-lg); overflow: hidden; border: 1px solid var(--os-border); }
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; background: #FBF6F2; border-bottom: 1px solid var(--os-border); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #F3D2BC; }
.mock-bar span:first-child { background: #FF6A00; }
.mock-body { display: flex; min-height: 300px; }
.mock-side { width: 60px; background: var(--os-dark); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 0; }
.mock-side i { color: rgba(255, 255, 255, .45); font-size: 1.1rem; }
.mock-side i.active { color: var(--os-accent); }
.mock-main { flex: 1; padding: 20px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.mock-kpis div { background: var(--os-soft); border-radius: 12px; padding: 12px; }
.mock-kpis small { display: block; color: var(--os-muted); font-size: .72rem; }
.mock-kpis strong { font-size: 1.1rem; color: var(--os-dark); }
.mock-kpis em { font-style: normal; font-size: .72rem; font-weight: 700; margin-left: 4px; }
.mock-kpis em.up { color: #12A150; }
.mock-chart { height: 170px; display: flex; align-items: flex-end; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--os-border); }
.mock-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--os-gradient); opacity: .85; animation: grow 1.2s ease-out both; }
.mock-chart span:nth-child(odd) { opacity: .55; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px 16px;
    border-radius: 14px; box-shadow: 0 14px 34px rgba(30, 23, 18, .12); animation: floaty 4s ease-in-out infinite;
}
.float-card i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--os-soft-2); color: var(--os-primary); font-size: 1.1rem; }
.float-card strong { display: block; font-size: .88rem; }
.float-card small { color: var(--os-muted); font-size: .75rem; }
.fc-1 { top: 0; right: -6px; }
.fc-2 { bottom: 40px; left: -14px; animation-delay: 1.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats-strip { background: var(--os-gradient); color: #fff; padding: 44px 0; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; }
.stat span { opacity: .92; font-weight: 500; }

/* ---------- Service cards ---------- */
.service-card {
    background: #fff; border: 1px solid var(--os-border); border-radius: var(--os-radius); padding: 32px 28px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--os-shadow-lg); border-color: transparent; }
.service-card h3 { font-size: 1.25rem; margin: 1.2rem 0 .6rem; }
.service-card p { color: var(--os-muted); margin-bottom: 1.2rem; }
.icon-box {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
    background: var(--os-soft-2); color: var(--os-primary); transition: background .2s, color .2s;
}
.service-card:hover .icon-box { background: var(--os-gradient); color: #fff; }
.link-arrow { font-weight: 700; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Product cards ---------- */
.product-card {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--os-radius);
    padding: 28px 24px; border: 1px solid var(--os-border); transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--os-shadow-lg); }
.product-card.featured { border: 2px solid var(--os-primary); }
.badge-hot { position: absolute; top: 16px; right: 16px; background: var(--os-gradient); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; }
.product-thumb {
    height: 120px; border-radius: 14px; margin-bottom: 1.2rem; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--os-soft-2), #FFD3B0);
}
.product-thumb i { font-size: 3rem; color: var(--os-primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.product-card .tagline { color: var(--os-muted); font-size: .95rem; }
.price-text { font-weight: 800; color: var(--os-primary); margin-bottom: .8rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.check-list li { padding: .3rem 0; font-size: .95rem; display: flex; gap: .5rem; }
.check-list i { color: var(--os-primary); font-size: 1.05rem; }

/* ---------- Steps ---------- */
.step-card { position: relative; padding: 32px 26px; border-radius: var(--os-radius); background: var(--os-soft); overflow: hidden; }
.step-card i { font-size: 2rem; color: var(--os-primary); }
.step-card h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.step-card p { color: var(--os-muted); margin: 0; }
.step-no { position: absolute; top: 10px; right: 18px; font-size: 3.6rem; font-weight: 800; color: rgba(255, 106, 0, .12); line-height: 1; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 20px; }
.cta-inner {
    background: var(--os-gradient); border-radius: 28px; padding: 48px 56px; color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    box-shadow: var(--os-shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.cta-inner p { margin: 0; opacity: .95; }

/* ---------- Pricing ---------- */
.price-card {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 36px 30px;
    border: 1px solid var(--os-border); transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--os-shadow); }
.price-card.popular { border: 2px solid var(--os-primary); box-shadow: var(--os-shadow-lg); transform: scale(1.03); }
.popular-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--os-gradient); color: #fff; font-size: .8rem; font-weight: 700; padding: .35rem 1rem; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.price { margin: 1rem 0 1.4rem; }
.price strong { font-size: 2.2rem; font-weight: 800; color: var(--os-dark); }
.price span { color: var(--os-muted); margin-left: .3rem; }

/* ---------- Testimonials ---------- */
.testi-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--os-border); border-radius: var(--os-radius); padding: 28px; }
.testi-card .stars { color: var(--os-accent); margin-bottom: .8rem; }
.testi-card p { font-size: 1.02rem; color: var(--os-text); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-text { display: grid; place-items: center; background: var(--os-gradient); color: #fff; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item { border: 1px solid var(--os-border); border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 700; font-size: 1.02rem; padding: 1.1rem 1.3rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: #fff; color: var(--os-primary); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(255, 106, 0, .2); }
.faq-accordion .accordion-body { color: var(--os-muted); padding-top: 0; }

/* ---------- Contact ---------- */
.contact-section { background: linear-gradient(180deg, #fff 0%, var(--os-soft) 100%); }
.benefit-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.benefit-list i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--os-soft-2); color: var(--os-primary); font-size: 1.2rem; }
.benefit-list strong { display: block; }
.benefit-list span { color: var(--os-muted); font-size: .92rem; }
.contact-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-quick a { background: #fff; border: 1px solid var(--os-border); padding: .6rem 1rem; border-radius: 12px; font-weight: 700; color: var(--os-dark); }
.contact-quick i { color: var(--os-primary); }

.form-card { background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--os-shadow-lg); border-top: 5px solid var(--os-primary); }
.lead-form .form-label { font-weight: 600; font-size: .92rem; }
.lead-form .form-control, .lead-form .form-select { border-radius: 12px; padding: .7rem .95rem; border-color: #E9DDD3; }
.lead-form .form-control:focus, .lead-form .form-select:focus,
.login-card .form-control:focus { border-color: var(--os-primary); box-shadow: 0 0 0 .2rem rgba(255, 106, 0, .15); }
.lead-form .input-validation-error { border-color: #dc3545; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: .9rem; }
.breadcrumb a { color: var(--os-muted); }
.product-hero-img { min-height: 320px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--os-soft-2), #FFC89A); box-shadow: var(--os-shadow-lg); }
.product-hero-img > i { font-size: 7rem; color: var(--os-primary); }
.feature-item { display: flex; gap: 12px; align-items: center; background: var(--os-soft); padding: 18px 20px; border-radius: 14px; font-weight: 600; height: 100%; }
.feature-item i { color: var(--os-primary); font-size: 1.3rem; }
.other-card { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--os-border); border-radius: 16px; color: var(--os-text); transition: box-shadow .2s, border-color .2s; }
.other-card:hover { border-color: var(--os-primary); box-shadow: var(--os-shadow); color: var(--os-text); }
.other-card > i:first-child { font-size: 1.8rem; color: var(--os-primary); }
.other-card small { display: block; color: var(--os-muted); }

/* ---------- Thank you / error / legal ---------- */
.thankyou { min-height: 60vh; display: flex; align-items: center; }
.ty-icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; background: var(--os-gradient); color: #fff; display: grid; place-items: center; font-size: 3rem; box-shadow: var(--os-shadow-lg); animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.error-code { font-size: 6rem; font-weight: 800; line-height: 1; background: var(--os-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { color: var(--os-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--os-dark); color: #fff; padding: 72px 0 28px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .6rem; color: rgba(255, 255, 255, .65); }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .65); }
.footer-links a:hover, .footer-contact a:hover { color: var(--os-accent); }
.footer-contact i { color: var(--os-primary); margin-right: .5rem; }
.social { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.social:hover { background: var(--os-primary); color: #fff; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 20px; bottom: 90px; z-index: 1030; flex-direction: column; gap: 12px; }
.fc-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.35rem; font-weight: 800; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: transform .15s; }
.fc-btn:hover { color: #fff; transform: scale(1.08); }
.fc-zalo { background: #0068FF; font-size: .82rem; }
.fc-messenger { background: linear-gradient(45deg, #0078FF, #A033FF); }
.fc-phone { background: var(--os-gradient); animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, .55); } 70% { box-shadow: 0 0 0 16px rgba(255, 106, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); } }

.back-to-top { position: fixed; right: 26px; bottom: 26px; z-index: 1030; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--os-dark); color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .1); padding-bottom: env(safe-area-inset-bottom); }
.mc-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; font-size: .78rem; font-weight: 700; color: var(--os-dark); }
.mc-item i { font-size: 1.2rem; color: var(--os-primary); }
.mc-primary { background: var(--os-gradient); color: #fff; flex: 1.4; }
.mc-primary i { color: #fff; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #FFF3E8, #FFE0C7); padding: 16px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 36px; box-shadow: var(--os-shadow-lg); }
.login-card .brand { display: flex; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-card, .fc-phone, .mock-chart span { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .section { padding: 72px 0; }
    .hero { padding: 48px 0 72px; }
    .price-card.popular { transform: none; }
    .cta-inner { padding: 36px 28px; }
    .site-header .navbar-collapse { padding-top: .5rem; }
}
@media (max-width: 767.98px) {
    body { padding-bottom: 64px; }
    .back-to-top { bottom: 80px; right: 16px; }
    .form-card { padding: 24px 18px; }
    .fc-1 { right: 0; }
    .fc-2 { left: 0; }
    .mock-kpis strong { font-size: .95rem; }
    .promo-bar .container { flex-direction: column; gap: 2px !important; }
}

/* ---------- Logo & ảnh hero (quản lý trong Admin) ---------- */
.brand-logo { max-height: 44px; width: auto; }
.site-footer .brand-logo { max-height: 48px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.hero-image { border-radius: 20px; box-shadow: var(--os-shadow-lg); }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }

/* ---------- Trang danh sách phần mềm ---------- */
.product-search { position: relative; display: flex; gap: 8px; max-width: 560px; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--os-shadow); }
.product-search > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--os-muted); }
.product-search .form-control { border: 0; padding-left: 40px; box-shadow: none; font-size: 1rem; }
.product-search .form-control:focus { box-shadow: none; }
.empty-state i { font-size: 3rem; color: var(--os-primary); opacity: .6; }
.section .badge.bg-white { font-weight: 700; }

/* ---------- Nội dung soạn bằng trình soạn thảo (mô tả phần mềm, FAQ, chính sách) ---------- */
.rich-content { font-size: 1.02rem; line-height: 1.75; color: var(--os-text); overflow-wrap: anywhere; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content h2 { font-size: 1.5rem; margin: 1.8rem 0 .8rem; }
.rich-content h3 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
.rich-content h4 { font-size: 1.08rem; margin: 1.2rem 0 .5rem; }
.rich-content p { margin-bottom: 1rem; }
.rich-content img { max-width: 100%; height: auto; border-radius: 14px; }
.rich-content figure.image { display: table; margin: 1.5rem auto; }
.rich-content figure.image figcaption { display: table-caption; caption-side: bottom; text-align: center; font-size: .9rem; color: var(--os-muted); padding-top: .5rem; }
.rich-content a { text-decoration: underline; text-underline-offset: 3px; }
.rich-content ul, .rich-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.rich-content li { margin-bottom: .35rem; }
.rich-content blockquote { border-left: 4px solid var(--os-primary); background: var(--os-soft); margin: 1.4rem 0; padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }
.rich-content hr { margin: 2rem 0; border-color: var(--os-border); opacity: 1; }
.rich-content .table-scroll { overflow-x: auto; margin: 1.4rem 0; border-radius: 12px; border: 1px solid var(--os-border); }
.rich-content table { width: 100%; border-collapse: collapse; margin: 0; background: #fff; }
.rich-content table th, .rich-content table td { border: 1px solid var(--os-border) !important; padding: .7rem .9rem; vertical-align: top; }
.rich-content table th, .rich-content table thead td { background: var(--os-soft); font-weight: 700; color: var(--os-dark); }
.rich-content table tr:nth-child(even) td { background: #FFFCFA; }
.rich-content iframe { max-width: 100%; border: 0; border-radius: 14px; }
.rich-content iframe[src*="youtube"], .rich-content iframe[src*="youtu.be"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.product-article { background: #fff; border: 1px solid var(--os-border); border-radius: 22px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--os-shadow); }
.faq-accordion .accordion-body.rich-content { font-size: .98rem; color: var(--os-muted); }

/* ---------- Thẻ dịch vụ có trang chi tiết ---------- */
.service-card h3 a.stretched-title, .product-card h3 a.stretched-title { color: inherit; text-decoration: none; }
.service-card h3 a.stretched-title:hover, .product-card h3 a.stretched-title:hover { color: var(--os-primary); }

/* ---------- Giá phần mềm: thuê theo tháng / mua trọn gói / liên hệ ---------- */
.price-box { display: grid; gap: 8px; margin-bottom: .9rem; }
.price-option { display: flex; flex-direction: column; }
.price-label { font-size: .78rem; font-weight: 600; color: var(--os-muted); text-transform: uppercase; letter-spacing: .03em; }
.price-label i { color: var(--os-primary); }
.price-value { font-size: 1.12rem; font-weight: 800; color: var(--os-primary); line-height: 1.3; }
.price-unit { font-size: .85rem; font-weight: 600; color: var(--os-muted); margin-left: 2px; }
.price-footnote { display: block; color: var(--os-muted); font-size: .8rem; margin: -.4rem 0 .9rem; }
.price-contact .price-value { color: var(--os-dark); }
/* Trang chi tiết: các loại giá nằm cạnh nhau */
.price-box-detail { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; max-width: 560px; margin-bottom: 1.4rem; }
.price-box-detail .price-option { background: #fff; border: 1px solid var(--os-border); border-radius: 16px; padding: 14px 18px; box-shadow: var(--os-shadow); }
.price-box-detail .price-option:first-child { border-color: var(--os-primary); }
.price-box-detail .price-value { font-size: 1.5rem; }
.price-box-detail .price-note { color: var(--os-muted); margin-top: 2px; }
.price-box-detail.price-contact .price-option { border-color: var(--os-primary); }

/* =========================================================
   CỠ CHỮ (TYPOGRAPHY)
   - Máy tính: chữ nội dung 1rem (16px)
   - Điện thoại: thu nhỏ tiêu đề, khoảng cách cho vừa màn hình
   ========================================================= */
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 1rem; line-height: 1.6; }

/* Chữ nội dung trên máy tính = 1rem */
.hero-sub,
.section-head p,
.testi-card p,
.rich-content,
.faq-accordion .accordion-button,
.cta-inner p,
.service-card p,
.step-card p { font-size: 1rem; }

/* Tiêu đề trên máy tính: gọn hơn một chút */
.hero-title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; }
.hero-sm .hero-title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.btn-lg { font-size: 1rem; }

/* ----- Máy tính bảng ----- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.1rem; }
    .hero-sm .hero-title { font-size: 1.9rem; }
    .section-head { margin-bottom: 40px; }
    .section-head h2 { font-size: 1.7rem; }
}

/* ----- Điện thoại ----- */
@media (max-width: 767.98px) {
    body { font-size: .9375rem; }                 /* 15px */
    .section { padding: 56px 0; }
    .hero { padding: 32px 0 56px; }
    .hero-sm { padding: 20px 0 40px; }

    .hero-title, .hero-sm .hero-title { font-size: 1.75rem; line-height: 1.2; margin: .8rem 0 .9rem; }
    .hero-sub { font-size: .9375rem; margin-bottom: 1.3rem; }
    .hero-sub.fs-5 { font-size: 1.05rem !important; }
    .hero-checks li { font-size: .875rem; }
    .eyebrow { font-size: .72rem; padding: .35rem .7rem; }

    .section-head { margin-bottom: 28px; }
    .section-head h2 { font-size: 1.45rem; margin: .5rem 0 .6rem; }
    .section-head p,
    .testi-card p,
    .service-card p,
    .step-card p,
    .cta-inner p,
    .rich-content { font-size: .9375rem; }

    .rich-content h2 { font-size: 1.3rem; }
    .rich-content h3 { font-size: 1.15rem; }
    .rich-content h4 { font-size: 1.02rem; }

    .btn { padding: .55rem 1rem; }
    .btn-lg { font-size: .95rem; padding: .7rem 1.2rem; border-radius: 12px; }

    .brand { font-size: 1.15rem; }
    .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
    .promo-bar { font-size: .8rem; }

    .stat strong { font-size: 1.75rem; }
    .stat span { font-size: .85rem; }

    .service-card, .product-card, .testi-card, .price-card, .step-card { padding: 22px 20px; }
    .service-card h3, .product-card h3, .price-card h3 { font-size: 1.12rem; }
    .step-card h3 { font-size: 1.05rem; }
    .step-no { font-size: 2.6rem; }
    .icon-box { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 14px; }
    .product-thumb { height: 96px; }
    .product-thumb i { font-size: 2.4rem; }
    .check-list li, .product-card .tagline { font-size: .875rem; }

    .price strong { font-size: 1.7rem; }
    .price-value { font-size: 1.02rem; }
    .price-box-detail .price-value { font-size: 1.2rem; }
    .price-box-detail .price-option { padding: 12px 14px; }

    .cta-inner { padding: 28px 22px; border-radius: 20px; }
    .cta-inner h2 { font-size: 1.3rem; }

    .faq-accordion .accordion-button { font-size: .95rem; padding: .9rem 1rem; }
    .benefit-list i { width: 38px; height: 38px; font-size: 1rem; }

    .product-hero-img { min-height: 200px; }
    .product-hero-img > i { font-size: 4.5rem; }
    .feature-item { padding: 14px 16px; font-size: .9375rem; }

    .ty-icon { width: 76px; height: 76px; font-size: 2.3rem; }
    .error-code { font-size: 4rem; }
    .float-card { display: none; }               /* thẻ nổi che nội dung trên màn nhỏ */
}

/* ----- Điện thoại nhỏ (≤ 375px) ----- */
@media (max-width: 375px) {
    .hero-title, .hero-sm .hero-title { font-size: 1.55rem; }
    .section-head h2 { font-size: 1.3rem; }
    .btn-lg { font-size: .9rem; }
}

/* =========================================================
   GHI ĐÈ CỠ TIÊU ĐỀ MẶC ĐỊNH CỦA BOOTSTRAP (h1–h6)
   Bootstrap đặt h1 = 2.5rem (40px) trên màn ≥1200px. Rule dưới đây nằm sau
   bootstrap.css nên được ưu tiên. Các tiêu đề có class riêng (.hero-title,
   .section-head h2...) vẫn giữ cỡ riêng của mình.
   ========================================================= */
h1, .h1 { font-size: 2rem; line-height: 1.2; }
h2, .h2 { font-size: 1.6rem; line-height: 1.25; }
h3, .h3 { font-size: 1.3rem; line-height: 1.3; }
h4, .h4 { font-size: 1.125rem; line-height: 1.35; }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: 1rem; }

/* Tiêu đề trong bài viết soạn bằng trình soạn thảo (kể cả h1 dán từ Word) */
.rich-content h1 { font-size: 1.75rem; margin: 1.8rem 0 .9rem; }
.rich-content h2 { font-size: 1.45rem; }
.rich-content h3 { font-size: 1.2rem; }
.rich-content h4 { font-size: 1.05rem; }
.rich-content h5, .rich-content h6 { font-size: 1rem; }

@media (max-width: 767.98px) {
    h1, .h1 { font-size: 1.6rem; }
    h2, .h2 { font-size: 1.35rem; }
    h3, .h3 { font-size: 1.12rem; }
    h4, .h4 { font-size: 1.02rem; }
    h5, .h5, h6, .h6 { font-size: .95rem; }

    .rich-content h1 { font-size: 1.4rem; }
    .rich-content h2 { font-size: 1.25rem; }
    .rich-content h3 { font-size: 1.1rem; }
    .rich-content h4 { font-size: 1rem; }
}

/* =========================================================
   GIẢM THÊM 0.5rem CHO TIÊU ĐỀ (theo yêu cầu)
   Tiêu đề nhỏ (h3–h6) giữ tối thiểu ~1rem để không nhỏ hơn chữ nội dung.
   ========================================================= */
/* ----- Máy tính ----- */
h1, .h1 { font-size: 1.5rem; }                       /* 2rem    -> 1.5rem  */
h2, .h2 { font-size: 1.1rem; }                       /* 1.6rem  -> 1.1rem  */
h3, .h3 { font-size: 1.05rem; }                      /* 1.3rem  -> ~1rem   */
h4, .h4, h5, .h5, h6, .h6 { font-size: 1rem; }

.hero-title { font-size: clamp(1.5rem, 3vw, 2.5rem); }            /* tối đa 3rem   -> 2.5rem */
.hero-sm .hero-title { font-size: clamp(1.4rem, 2.5vw, 2.1rem); } /* tối đa 2.6rem -> 2.1rem */
.section-head h2 { font-size: clamp(1.1rem, 2vw, 1.7rem); }       /* tối đa 2.2rem -> 1.7rem */
.cta-inner h2 { font-size: clamp(1.1rem, 2.2vw, 1.6rem); }
.service-card h3, .product-card h3, .price-card h3 { font-size: 1.1rem; }
.step-card h3 { font-size: 1.05rem; }

.rich-content h1 { font-size: 1.25rem; }             /* 1.75rem -> 1.25rem */
.rich-content h2 { font-size: 1.15rem; }
.rich-content h3 { font-size: 1.05rem; }
.rich-content h4, .rich-content h5, .rich-content h6 { font-size: 1rem; }

/* ----- Máy tính bảng ----- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 1.75rem; }
    .hero-sm .hero-title { font-size: 1.6rem; }
    .section-head h2 { font-size: 1.35rem; }
}

/* ----- Điện thoại ----- */
@media (max-width: 767.98px) {
    h1, .h1 { font-size: 1.25rem; }
    h2, .h2 { font-size: 1.05rem; }
    h3, .h3, h4, .h4 { font-size: 1rem; }
    h5, .h5, h6, .h6 { font-size: .95rem; }

    .hero-title, .hero-sm .hero-title { font-size: 1.35rem; }
    .section-head h2 { font-size: 1.15rem; }
    .cta-inner h2 { font-size: 1.1rem; }
    .service-card h3, .product-card h3, .price-card h3, .step-card h3 { font-size: 1rem; }

    .rich-content h1 { font-size: 1.15rem; }
    .rich-content h2 { font-size: 1.05rem; }
    .rich-content h3, .rich-content h4 { font-size: 1rem; }
}
@media (max-width: 375px) {
    .hero-title, .hero-sm .hero-title { font-size: 1.25rem; }
    .section-head h2 { font-size: 1.1rem; }
}

/* Link "+N tính năng khác" trên thẻ phần mềm */
.check-list li.more-features { padding-left: 1.55rem; font-size: .875rem; }
.check-list li.more-features a { font-weight: 600; }

/* ---------- Icon minh hoạ trên thẻ dịch vụ ---------- */
.icon-box.icon-box-img { width: 72px; height: 72px; background: none; border-radius: 0; }
.icon-box.icon-box-img img { width: 72px; height: 72px; display: block; transition: transform .25s ease; }
.service-card:hover .icon-box.icon-box-img { background: none; }
.service-card:hover .icon-box.icon-box-img img { transform: translateY(-4px) scale(1.06); }
@media (max-width: 767.98px) {
    .icon-box.icon-box-img, .icon-box.icon-box-img img { width: 60px; height: 60px; }
}

/* ---------- Thẻ dịch vụ: bấm vào cả thẻ để mở trang chi tiết ---------- */
.service-card { position: relative; }
.service-card-link { cursor: pointer; }
.service-card-link .stretched-link::after { border-radius: var(--os-radius); }
.service-card-link:hover h3 a { color: var(--os-primary); }
.service-card-link:hover .link-arrow i { transform: translateX(4px); }
.service-card-link .stretched-link:focus-visible::after { outline: 3px solid rgba(255, 106, 0, .4); outline-offset: 2px; }

/* =========================================================
   SLIDER ĐẦU TRANG CHỦ
   ========================================================= */
.home-slider { position: relative; background: var(--os-dark); overflow: hidden; }
.home-slider .carousel-item { height: var(--slider-h, 620px); }
.home-slider .slide-bg, .home-slider .slide-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-slider .slide-bg img { object-fit: cover; object-position: center; transform: scale(1.06); transition: transform 7s ease-out; }
.home-slider .carousel-item.active .slide-bg img { transform: scale(1); }
.home-slider .slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 23, 18, .55) 0%, rgba(30, 23, 18, .22) 42%, rgba(30, 23, 18, 0) 62%); }
.home-slider .slide-overlay.from-right { background: linear-gradient(270deg, rgba(30, 23, 18, .55) 0%, rgba(30, 23, 18, .22) 42%, rgba(30, 23, 18, 0) 62%); }
.home-slider .slide-overlay.center { background: rgba(30, 23, 18, .45); }

.home-slider .slide-content-wrap { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.home-slider .slide-content-wrap.align-center { justify-content: center; }
.home-slider .slide-content-wrap.align-right { justify-content: flex-end; }
.home-slider .slide-content { max-width: 600px; padding: 40px 0 70px; }
.home-slider .slide-content.light { color: #fff; }
.home-slider .slide-content.dark { color: var(--os-dark); }
.home-slider .slide-eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .35); margin-bottom: 1rem;
}
.home-slider .slide-content.dark .slide-eyebrow { background: var(--os-soft-2); color: var(--os-primary); border-color: transparent; }
.home-slider .slide-title { font-size: clamp(1.6rem, 3.2vw, 2.75rem); font-weight: 800; line-height: 1.18; color: inherit; margin-bottom: .9rem; text-wrap: balance; }
.home-slider .slide-sub { font-size: 1rem; line-height: 1.6; opacity: .92; margin-bottom: 1.6rem; max-width: 520px; }
.home-slider .align-center .slide-sub { margin-left: auto; margin-right: auto; }
.home-slider .align-right .slide-sub { margin-left: auto; }
.home-slider .slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-slider .align-center .slide-actions { justify-content: center; }
.home-slider .align-right .slide-actions { justify-content: flex-end; }
.home-slider .slide-btn-primary { color: var(--os-primary); font-weight: 700; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.home-slider .slide-btn-primary:hover { color: var(--os-primary-600); transform: translateY(-2px); }
.home-slider .slide-btn-secondary { color: #fff; border: 2px solid rgba(255, 255, 255, .7); background: transparent; }
.home-slider .slide-btn-secondary:hover { background: #fff; color: var(--os-primary); }
.home-slider .slide-content.dark .slide-btn-primary { background: var(--os-gradient); color: #fff; border: 0; }
.home-slider .slide-content.dark .slide-btn-secondary { color: var(--os-primary); border-color: var(--os-primary); }

/* Hiệu ứng chữ xuất hiện khi chuyển slide */
.home-slider .carousel-item .slide-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.home-slider .carousel-item.active .slide-content > * { opacity: 1; transform: none; }
.home-slider .carousel-item.active .slide-content > *:nth-child(2) { transition-delay: .12s; }
.home-slider .carousel-item.active .slide-content > *:nth-child(3) { transition-delay: .24s; }
.home-slider .carousel-item.active .slide-content > *:nth-child(4) { transition-delay: .36s; }

/* Nút điều hướng & chấm */
.home-slider .carousel-control-prev, .home-slider .carousel-control-next { width: 72px; opacity: 1; z-index: 3; }
.home-slider .slider-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 1.2rem; backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.home-slider .carousel-control-prev:hover .slider-arrow, .home-slider .carousel-control-next:hover .slider-arrow { background: #fff; color: var(--os-primary); }
.home-slider .carousel-indicators { z-index: 3; margin-bottom: 1.6rem; gap: 6px; }
.home-slider .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 999px; border: 0; margin: 0; opacity: .55; transition: width .3s, opacity .3s; }
.home-slider .carousel-indicators .active { width: 32px; opacity: 1; background: #fff; }
.home-slider .slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); z-index: 3; }
.home-slider .slider-progress span { display: block; height: 100%; width: 0; background: var(--os-accent); animation: sliderProgress linear infinite; }
.home-slider:hover .slider-progress span { animation-play-state: paused; }
@keyframes sliderProgress { from { width: 0; } to { width: 100%; } }

@media (max-width: 991.98px) {
    .home-slider .slide-overlay, .home-slider .slide-overlay.from-right { background: linear-gradient(180deg, rgba(30, 23, 18, .25) 0%, rgba(30, 23, 18, .65) 100%); }
    .home-slider .carousel-control-prev, .home-slider .carousel-control-next { display: none; }
}
@media (max-width: 767.98px) {
    .home-slider .carousel-item { height: var(--slider-h-mobile, 520px); }
    .home-slider .slide-bg img { object-position: 78% center; }
    .home-slider .slide-content-wrap { align-items: flex-end; }
    .home-slider .slide-content { padding: 24px 0 64px; }
    .home-slider .slide-title { font-size: 1.4rem; }
    .home-slider .slide-sub { font-size: .9rem; margin-bottom: 1.1rem; }
    .home-slider .slide-eyebrow { font-size: .68rem; padding: .3rem .7rem; margin-bottom: .7rem; }
    .home-slider .slide-actions .btn { font-size: .875rem; padding: .6rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .home-slider .slide-bg img, .home-slider .carousel-item .slide-content > * { transition: none; transform: none; }
    .home-slider .slider-progress { display: none; }
}

/* =========================================================
   SLIDER – BỐ CỤC THEO CHẾ ĐỘ CHIỀU CAO
   ========================================================= */
.home-slider .slide-media { position: absolute; inset: 0; overflow: hidden; }
.home-slider .slide-link { display: block; width: 100%; height: 100%; }
.home-slider .slide-content-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.home-slider .slide-content-layer .slide-content { pointer-events: auto; }

/* ----- Cố định: khung chiều cao cố định, ảnh cắt cho vừa ----- */
.home-slider.fixed-height .carousel-item { height: var(--slider-h, 620px); }

/* ----- Tự động: ảnh full chiều ngang, chiều cao theo tỉ lệ ảnh, không cắt ----- */
.home-slider.auto-height .carousel-item { height: auto; }
.home-slider.auto-height .slide-media { position: relative; inset: auto; }
.home-slider.auto-height .slide-bg { position: static; display: block; width: 100%; height: auto; }
.home-slider.auto-height .slide-bg img { position: static; display: block; width: 100%; height: auto; object-fit: contain; transform: none; transition: none; }
.home-slider.auto-height .slide-overlay { position: absolute; inset: 0; }
.home-slider.auto-height .slide-content { padding: 24px 0 56px; }

@media (max-width: 767.98px) {
    .home-slider.fixed-height .carousel-item { height: var(--slider-h-mobile, 520px); }

    /* Tự động + điện thoại: nếu không có ảnh riêng cho điện thoại, ảnh ngang quá thấp
       -> hiện trọn ảnh, chữ & nút nằm ngay bên dưới ảnh */
    .home-slider.auto-height .carousel-item:not(.has-mobile-img) .slide-content-layer { position: static; background: var(--os-dark); }
    .home-slider.auto-height .carousel-item:not(.has-mobile-img) .slide-overlay { display: none; }
    .home-slider.auto-height .carousel-item:not(.has-mobile-img) .slide-content { color: #fff; padding: 18px 0 46px; }
    .home-slider.auto-height .carousel-item:not(.has-mobile-img) .slide-content-wrap { align-items: flex-start; height: auto; }
    .home-slider.auto-height .carousel-item:not(.has-mobile-img) .slide-content.dark .slide-btn-secondary { color: #fff; border-color: rgba(255,255,255,.7); }
    .home-slider.auto-height .carousel-item.no-text { padding-bottom: 0; }
    .home-slider.auto-height .carousel-indicators { margin-bottom: .8rem; }
}

/* ---------- FAQ trang chi tiết: dấu +/– ---------- */
.faq-plus .accordion-button::after {
    background-image: none; content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1;
    width: auto; height: auto; color: var(--os-primary); transform: none; transition: none;
}
.faq-plus .accordion-button:not(.collapsed)::after { content: "–"; transform: none; }
.faq-plus .accordion-button:not(.collapsed) { background: var(--os-soft); color: var(--os-primary); }
.faq-plus .accordion-body { padding-top: 1rem; }

/* ---------- Bảng giá 4 gói / hàng ---------- */
.pricing-cols-4 .price-card { padding: 28px 22px; }
.pricing-cols-4 .price-card h3 { font-size: 1.15rem; }
.pricing-cols-4 .price-card > .text-muted { font-size: .9rem; min-height: 2.9em; }
.pricing-cols-4 .price { margin: .6rem 0 1.1rem; }
.pricing-cols-4 .price strong { font-size: 1.75rem; }
.pricing-cols-4 .price span { font-size: .9rem; }
.pricing-cols-4 .check-list li { font-size: .9rem; }
.pricing-cols-4 .price-card.popular { transform: none; }   /* tránh tràn khi 4 cột */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .pricing-cols-4 .price strong { font-size: 1.55rem; }
}

/* =========================================================
   BẢNG GIÁ – THIẾT KẾ MỚI
   ========================================================= */
.pricing-grid { align-items: stretch; padding-top: 14px; }
.pcard {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px;
    border: 1px solid #F1E3D8; padding: 28px 24px 26px; box-shadow: 0 1px 2px rgba(30, 23, 18, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(255, 106, 0, .14); border-color: #FFD3B3; }

/* Đầu thẻ: chiều cao cố định để giá các gói thẳng hàng */
.pcard-head { min-height: 118px; }
.pcard-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pcard-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--os-soft-2); color: var(--os-primary); font-size: 1.2rem; }
.pcard h3 { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--os-dark); }
.pcard-sub { font-size: .875rem; line-height: 1.5; color: var(--os-muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Giá */
.pcard-price { padding: 18px 0 20px; margin-bottom: 20px; border-bottom: 1px dashed #F0DCCB; }
.pcard-amount { display: flex; align-items: flex-start; gap: 2px; line-height: 1; color: var(--os-dark); }
.pcard-amount .num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pcard-amount .cur { font-size: 1rem; font-weight: 800; margin-top: 4px; }
.pcard-amount.contact .num { font-size: 1.75rem; }
.pcard-unit { margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--os-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Nút: đặt trước danh sách quyền lợi để các nút thẳng hàng */
.pcard-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .75rem 1rem; border-radius: 12px; font-weight: 700; }
.pcard-btn i { transition: transform .2s; }
.pcard-btn:hover i { transform: translateX(4px); }

/* Quyền lợi */
.pcard-features { margin-top: 22px; }
.pcard-features-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--os-muted); margin-bottom: 12px; }
.pcard-features ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.pcard-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--os-text); }
.pcard-features li i {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
    display: grid; place-items: center; font-size: .8rem; background: var(--os-soft-2); color: var(--os-primary);
}

/* Gói nổi bật */
.pcard-popular { border: 2px solid var(--os-primary); box-shadow: 0 24px 56px rgba(255, 106, 0, .20); }
.pcard-popular::before {
    content: ""; position: absolute; top: -2px; left: -2px; right: -2px; height: 8px; border-radius: 22px 22px 0 0; background: var(--os-gradient);
}
.pcard-popular .pcard-icon { background: var(--os-gradient); color: #fff; }
.pcard-popular .pcard-amount { color: var(--os-primary); }
.pcard-popular .pcard-features li i { background: var(--os-primary); color: #fff; }
.pcard-ribbon {
    position: absolute; top: -14px; right: 20px; background: var(--os-gradient); color: #fff; font-size: .75rem; font-weight: 700;
    padding: .35rem .85rem; border-radius: 999px; box-shadow: 0 8px 18px rgba(255, 106, 0, .35); white-space: nowrap;
}

.pricing-note { text-align: center; color: var(--os-muted); font-size: .9rem; margin: 32px 0 0; }
.pricing-note i { color: var(--os-primary); margin-right: 4px; }

/* 3 gói/hàng: thẻ rộng hơn -> chữ giá lớn hơn */
.pricing-cols-3 .pcard { padding: 32px 30px 30px; }
.pricing-cols-3 .pcard-amount .num { font-size: 2.3rem; }

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .pricing-cols-4 .pcard { padding: 26px 20px 24px; }
    .pricing-cols-4 .pcard-amount .num { font-size: 1.75rem; }
}
@media (max-width: 767.98px) {
    .pcard-head { min-height: 0; }
    .pcard { padding: 24px 20px; }
    .pcard-amount .num { font-size: 1.75rem; }
    .pcard:hover { transform: none; }
}

/* ---------- Tên website cạnh logo ---------- */
.brand .brand-name { white-space: nowrap; line-height: 1; }
.site-footer .brand .brand-name { color: #fff; }
@media (max-width: 575.98px) {
    .brand { font-size: 1.1rem; gap: .45rem; }
    .brand-logo { max-height: 38px; }
}

/* ---------- Tên website màu cam (đồng bộ màu thương hiệu) ---------- */
.brand .brand-name,
.site-footer .brand .brand-name {
    color: var(--os-primary);                    /* dự phòng cho trình duyệt cũ */
    background: var(--os-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800; letter-spacing: -.01em;
}
.brand:hover .brand-name { filter: brightness(1.08); }
