@view-transition {
    navigation: auto;
}

:root {
    --primary: #01757A;
    --primary-hover: #006B70;
    --primary-light: #E0F2F1;
    --bg-canvas: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --border-radius: 4px;
    --font-sans: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"],
body.layout-dark-mode {
    --primary: #2BA5AB;
    --primary-hover: #4CBFC5;
    --primary-light: rgba(43, 165, 171, 0.14);
    --bg-canvas: #0F172A;
    --bg-card: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-hover);
}

/* Header & Navigation */
.site-header {
    background-color: color-mix(in srgb, var(--bg-card) 92%, transparent);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-muted);
    font-weight: 500;
}

.site-nav a:hover,
.site-nav .active {
    color: var(--primary);
}

/* Dropdown submenu (e.g. "Sản phẩm" grouping SO/PO/KHO) */
.has-submenu {
    position: relative;
}
.has-submenu > .nav-parent::after {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.site-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 50;
}
/* BR-CMS-NAV-02: trên máy tính, chữ menu canh đáy theo dòng cuối của logo (không canh giữa) */
@media (min-width: 901px) {
    body:not(.layout-header-centered) .site-header .header-container {
        align-items: flex-end;   /* logo và chữ menu chung một đường đáy */
    }
    /* nút tìm kiếm / giao diện / báo giá cùng đường đáy với chữ menu */
    body:not(.layout-header-centered) .site-header .header-container > .header-actions {
        align-self: flex-end;
        align-items: flex-end;
    }
}
/* BR-CMS-BRANDCOLOR-01: ô nhập liệu dùng font của site (textarea mặc định trình duyệt là monospace) */
input,
textarea,
select,
button {
    font-family: inherit;
}
/* BR-CMS-NAV-03: chữ menu và nút trên header không bao giờ xuống 2 dòng; laptop nhỏ (901-1199px) thu gọn khoảng cách */
.site-nav a,
.header-actions > a,
.header-actions .btn {
    white-space: nowrap;
}
/* menu bám ngay sau logo, cụm nút bám phải: đổi VI/EN chỉ đổi chữ, không làm menu trượt qua lại */
@media (min-width: 901px) {
    body:not(.layout-header-centered) .site-header .site-nav { margin-left: 2.5rem; margin-right: auto; }
}
@media (min-width: 901px) and (max-width: 1199px) {
    body:not(.layout-header-centered) .site-header .site-nav { margin-left: 1.5rem; }
    .header-container { padding-left: 1.25rem; padding-right: 1.25rem; gap: 1rem; }
    .site-nav ul { gap: 1.25rem; }
    .header-actions { gap: 0.5rem; }
    #cms-cmd-trigger .d-none-mobile { display: none; }
    .header-actions > a.header-cta { padding-left: 1rem; padding-right: 1rem; }
}
.site-header .site-logo { flex-shrink: 0; }   /* logo không bị bóp nhỏ khi thiếu chỗ */
/* <= 900px: header 1 hàng logo + CTA + ☰ (BR-CMS-NAV-05, thay kiểu xếp chồng 3 tầng) */
@media (max-width: 900px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }
}
.site-header .nav-toggle,
.site-header .header-cta-mobile {
    display: none;                  /* chỉ hiện ở <= 900px; tiền tố .site-header để thắng .btn */
}
/* BR-CMS-NAV-05: ngăn kéo menu trên điện thoại / máy tính bảng dọc */
@media (min-width: 901px) {
    .header-drawer { display: contents; }   /* máy tính: nav + cụm nút vẫn là phần tử của hàng header như cũ */
}
@media (max-width: 900px) {
    /* Giữ 1 hàng logo · CTA · ☰ kể cả khi CSS riêng cũ của site ép lưới 2 hàng bằng !important (Sonnytech 23/11) */
    .site-header .header-container {
        display: flex !important;
        flex-wrap: wrap !important;     /* ngăn kéo (flex-basis 100%) xuống hàng dưới */
        grid-template-areas: none !important;
        grid-template-columns: none !important;
    }
    body.layout-header-centered .site-header .header-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }
    body.layout-header-centered .site-header .site-logo { margin: 0; }
    .site-header .site-logo { margin-right: auto; min-width: 0; }
    .site-header .site-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .site-header .header-cta-mobile {
        display: inline-flex;
        padding: 0.5rem 0.9rem;
        font-size: 0.875rem;
        white-space: nowrap;
        min-height: 44px;
        align-items: center;
    }
    .site-header .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        padding: 0;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius, 8px);
        background: transparent;
        color: inherit;
        cursor: pointer;
    }
    .nav-toggle .icon-close { display: none; }
    body.nav-open .nav-toggle .icon-menu { display: none; }
    body.nav-open .nav-toggle .icon-close { display: block; }
    .header-drawer {
        display: none;
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
        padding: 0.25rem 0 1rem;
    }
    body.nav-open .header-drawer {
        display: block;
    }
    .header-drawer .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        font-size: 1rem;
    }
    .header-drawer .site-nav a {
        display: block;
        padding: 0.8rem 0.25rem;
        border-bottom: 1px solid var(--border-color);
    }
    /* !important: CSS riêng cũ của site có thể ép menu con nổi (position:fixed!important, Sonnytech 23/11) */
    .site-header .header-drawer .site-nav .submenu {
        display: block !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 0 1rem;
        border: 0 !important;
        border-radius: 0;
        box-shadow: none !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .header-drawer .site-nav .submenu::before,
    .header-drawer .has-submenu > .nav-parent::after { display: none; }
    .header-drawer .site-nav .submenu a { font-size: 0.95rem; padding: 0.65rem 0.25rem; }
    body .site-header .header-drawer .header-actions {   /* thắng body.layout-header-centered .header-actions (absolute) */
        position: static;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0;
        padding: 0.9rem 0 0;
    }
    .header-drawer .header-actions > a.header-cta {
        display: none;               /* đã có nút CTA trên hàng header */
    }
}
@media (max-width: 380px) {
    /* máy 360px: logo ảnh rộng + CTA + ☰ vẫn 1 hàng (SSA 23/11: ☰ rơi xuống hàng 2) */
    .site-header .header-cta-mobile {
        padding: 0.5rem 0.6rem;
        font-size: 0.8125rem;
    }
}
/* END BR-CMS-NAV-05 */
/* BR-CMS-NAV-04: điện thoại / màn hình cảm ứng không có phím Ctrl+K: nút tìm chỉ còn biểu tượng */
@media (max-width: 900px), (hover: none) {
    #cms-cmd-trigger .d-none-mobile { display: none; }
}
@media (min-width: 901px) and (max-width: 1079px) {
    body:not(.layout-header-centered) .site-header .site-nav { margin-left: 1rem; }
    .site-nav ul { gap: 0.85rem; }
    .site-nav a { font-size: 0.92rem; }
}
/* BR-CMS-NAV-01: cầu nối trong suốt phủ khe hở margin-top giữa mục cha và menu con,
   để rê chuột xuống menu con không làm mất :hover (menu con đóng trước khi bấm được) */
.site-nav .submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.75rem;
    height: 0.75rem;
}
.site-nav .has-submenu:hover > .submenu,
.site-nav .has-submenu:focus-within > .submenu,
.site-nav .has-submenu.open > .submenu {
    display: block;
}
.site-nav .submenu li {
    display: block;
}

/* BR-CMS-SOCIAL-01: biểu tượng mạng xã hội ở chân trang */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: inherit; /* hợp cả chân trang sáng lẫn tối */
    background: rgba(127, 127, 127, 0.14);
    border: 1px solid rgba(127, 127, 127, 0.3);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.footer-social a:hover { transform: translateY(-2px); color: #fff; }
.footer-social .social-facebook:hover { background: #1877F2; }
.footer-social .social-linkedin:hover { background: #0A66C2; }
.footer-social .social-youtube:hover { background: #FF0000; }
.footer-social .social-instagram:hover { background: #E1306C; }
.footer-social .social-tiktok:hover { background: #000; }
.footer-social .social-zalo:hover { background: #0068FF; }
.footer-social .social-x:hover { background: #000; }
.footer-social .social-text { font-size: 0.68rem; font-weight: 800; }

/* BR-CMS-WATERMARK-01: logo chìm chồng lên ảnh bài viết (bật trong Thiết kế giao diện › Nâng cao) */
.cms-wm {
    position: absolute;
    z-index: 2;
    height: auto;
    max-width: 45%;
    pointer-events: none;
    user-select: none;
}
.cms-wm-br { right: 3%; bottom: 4%; }
.cms-wm-bl { left: 3%; bottom: 4%; }
.cms-wm-tr { right: 3%; top: 4%; }
.cms-wm-tl { left: 3%; top: 4%; }
.cms-wm-plate {
    box-sizing: border-box;
    padding: 0.4em 0.65em;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}
.submenu a {
    display: block;
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 500;
}
.submenu a:hover {
    color: var(--primary);
    background-color: var(--bg-canvas);
}

/* Numbered step list inside custom-html blocks (e.g. document lifecycle) */
.lifecycle-steps {
    max-width: 640px;
    margin: 1.5rem auto;
    padding-left: 1.5rem;
    line-height: 1.9;
}
.lifecycle-steps li {
    margin-bottom: 0.25rem;
}

/* Floating contact buttons (hotline + Zalo), rendered when site has Hotline/ZaloUrl in theme settings */
.float-contact {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 90;
}
.float-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
    transition: var(--transition-smooth);
}
.float-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}
.float-zalo {
    background-color: #0068FF; /* Zalo brand blue — exception to site palette for recognisability */
}
.float-phone {
    background-color: var(--primary);
}

/* BR-CMS-MOBILEBAR-01: điện thoại — thanh liên hệ đáy (Gọi · Zalo · CTA) thay 2 nút tròn che nội dung */
.mobile-contact-bar,
.mobile-contact-bar-spacer {
    display: none;
}
@media (max-width: 900px) {
    .float-contact {
        display: none;
    }
    .mobile-contact-bar-spacer {
        display: block;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-contact-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        gap: 0.5rem;
        padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.1);
    }
    .mcb-item {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 52px;
        padding: 0 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius, 8px);
        color: var(--text-main);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }
    .mcb-call svg { color: var(--primary); }
    .mcb-zalo svg { color: #0068FF; }   /* màu nhận diện Zalo, như nút nổi */
    .mcb-item.mcb-cta {
        flex-grow: 1.4;
        background: var(--primary);
        border-color: var(--primary);
        color: #FFFFFF;
    }
    #cms-back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;   /* không đè lên thanh liên hệ */
    }
}
/* END BR-CMS-MOBILEBAR-01 */

/* Circular numbered badge for step indicators (e.g. "3 bước bắt đầu") */
.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
}

/* ── Hero Block ── */
.block-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-canvas) 100%);
    padding: 8rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* Split Hero Layout */
.block-hero--split {
    padding: 5rem 2rem 4rem;
    text-align: left;
}

.hero-split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    background-color: rgba(1, 117, 122, 0.08);
    color: var(--primary);
    border: 1px solid rgba(1, 117, 122, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    width: fit-content;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0;
    letter-spacing: -0.025em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-main) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.block-hero--split .hero-actions {
    justify-content: flex-start;
}

.btn-hero-primary {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.hero-trust {
    font-size: 0.8125rem;
    color: #94A3B8;
    margin-top: -0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-product-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.hero-product-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Mockup */
.hero-product-mock {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
}

.mock-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-color);
}

.mock-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.mock-red    { background: #FC605B; }
.mock-yellow { background: #FDBC40; }
.mock-green  { background: #34C749; }

.mock-url {
    font-size: 11px;
    color: #94A3B8;
    margin-left: 8px;
    font-weight: 500;
}

.mock-body {
    display: flex;
    height: 200px;
}

.mock-sidebar {
    width: 48px;
    background: #F8FAFC;
    border-right: 1px solid var(--border-color);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-nav-item {
    height: 8px;
    border-radius: 2px;
    background: #E2E8F0;
}

.mock-nav-item.mock-active {
    background: var(--primary);
    opacity: 0.7;
}

.mock-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.mock-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-stat {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-stat-highlight {
    background: rgba(1,117,122,0.06);
    border-color: rgba(1,117,122,0.2);
}

.mock-stat-label {
    font-size: 9px;
    color: #94A3B8;
    font-weight: 500;
}

.mock-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    font-family: monospace;
}

.mock-stat-highlight .mock-stat-value {
    color: var(--primary);
}

.mock-chart {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.mock-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mock-table-row {
    height: 10px;
    background: #F1F5F9;
    border-radius: 2px;
}

.mock-table-head {
    background: #E2E8F0;
}

.mock-table-alt {
    background: #F8FAFC;
    width: 90%;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.6s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Features Block ── */
.block-features {
    padding: 6rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.block-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.block-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(1,117,122,0.3);
    box-shadow: 0 4px 20px rgba(1,117,122,0.08);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(1,117,122,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.feature-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-name {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-main);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .block-hero--split {
        text-align: center;
    }
    .block-hero--split .hero-actions {
        justify-content: center;
    }
    .block-hero--split .hero-subtitle {
        max-width: 100%;
    }
    .hero-badge {
        margin: 0 auto;
    }
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted);
}

/* Pricing Block */
.block-pricing {
    padding: 6rem 2rem;
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    width: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.popular {
    border-color: var(--primary);
    border-width: 2px;
}

.pricing-card.popular .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

/* Contact Form Block */
.block-contact {
    padding: 6rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    background-color: var(--bg-canvas);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    padding: 4rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    max-width: 300px;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #E6F4EA;
    border-color: #A3E2A6;
    color: #137333;
}

.alert-danger {
    background-color: #FCE8E6;
    border-color: #F5B4AD;
    color: #C5221F;
}

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* CMS Block Custom Styles Utility Classes */
.bg-white {
    background-color: #FFFFFF !important;
}
.bg-slate-light {
    background-color: #F8FAFC !important;
}
.bg-primary-teal {
    background-color: #01757A !important;
    color: #FFFFFF;
}
.bg-primary-teal h1, .bg-primary-teal h2, .bg-primary-teal h3, .bg-primary-teal h4, .bg-primary-teal h5, .bg-primary-teal h6, .bg-primary-teal p, .bg-primary-teal span, .bg-primary-teal .block-subtitle, .bg-primary-teal .block-title {
    color: #FFFFFF !important;
}
.bg-slate-dark {
    background-color: #0F172A !important;
    color: #FFFFFF;
}
.bg-slate-dark h1, .bg-slate-dark h2, .bg-slate-dark h3, .bg-slate-dark h4, .bg-slate-dark h5, .bg-slate-dark h6, .bg-slate-dark p, .bg-slate-dark span, .bg-slate-dark .block-subtitle, .bg-slate-dark .block-title {
    color: #FFFFFF !important;
}
.text-slate-dark {
    color: #1E293B !important;
}
.text-slate-dark h1, .text-slate-dark h2, .text-slate-dark h3, .text-slate-dark h4, .text-slate-dark h5, .text-slate-dark h6, .text-slate-dark p, .text-slate-dark span, .text-slate-dark .block-subtitle, .text-slate-dark .block-title {
    color: #1E293B !important;
}
.text-white {
    color: #FFFFFF !important;
}
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6, .text-white p, .text-white span, .text-white .block-subtitle, .text-white .block-title {
    color: #FFFFFF !important;
}
.text-left {
    text-align: left !important;
}
.text-center {
    text-align: center !important;
}
.text-right {
    text-align: right !important;
}
.py-small {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
.py-medium {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}
.py-large {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* =========================================
   DYNAMIC THEME LAYOUT VARIANTS
   ========================================= */

/* Layout: Header Centered (Two-tier) */
body.layout-header-centered .header-container { 
    flex-direction: column; 
    gap: 1.5rem; 
    padding: 1.5rem 2rem;
    position: relative;
}
body.layout-header-centered .site-logo {
    margin: 0 auto;
}
body.layout-header-centered .site-nav ul {
    justify-content: center;
}
body.layout-header-centered .header-actions {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
}

/* Layout: Header Minimal */
body.layout-header-minimal .site-nav { display: none; }
body.layout-header-minimal .header-container { justify-content: space-between; }

/* Layout: Footer Fat */
body.layout-footer-fat .site-footer { 
    padding-top: 6rem; 
    background-color: #0F172A !important; 
    color: #FFFFFF !important;
    border-top: 4px solid var(--primary); 
}
body.layout-footer-fat .footer-container { gap: 5rem; justify-content: flex-start; }
body.layout-footer-fat .footer-desc, body.layout-footer-fat .footer-links a, body.layout-footer-fat .footer-bottom { color: #94A3B8 !important; }
body.layout-footer-fat .footer-links h4 { color: #F8FAFC !important; font-size: 1.1rem; }
body.layout-footer-fat .site-footer .site-logo { color: #FFFFFF !important; }
body.layout-footer-fat .site-footer .site-logo path { fill: #0F172A; } /* Inverse logo text icon */

/* Layout: Footer Minimal */
body.layout-footer-minimal .footer-links { display: none; }
body.layout-footer-minimal .footer-container { justify-content: center; text-align: center; margin-bottom: 1rem; }
body.layout-footer-minimal .footer-info { max-width: 100%; display: flex; flex-direction: column; align-items: center; }

/* Layout: Button Outline */
body.layout-btn-outline .btn-primary { 
    background-color: transparent !important; 
    border: 2px solid var(--primary) !important; 
    color: var(--primary) !important; 
    box-shadow: none;
}
body.layout-btn-outline .btn-primary:hover { 
    background-color: var(--primary) !important; 
    color: white !important; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Layout: Button Ghost */
body.layout-btn-ghost .btn-primary { 
    background-color: transparent !important; 
    border: 2px solid transparent !important; 
    color: var(--primary) !important; 
    box-shadow: none;
}
body.layout-btn-ghost .btn-primary:hover { 
    background-color: var(--primary-light) !important; 
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */
@media (max-width: 768px) {
    /* Header & Navigation: xem BR-CMS-NAV-05 (<= 900px, ngăn kéo menu) */

    /* Hero Section */
    .block-hero {
        padding: 5rem 1rem !important;
    }
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
    }

    /* Features Section */
    .block-features {
        padding: 4rem 1rem !important;
    }
    .block-title {
        font-size: 1.75rem !important;
    }
    .block-subtitle {
        margin-bottom: 2rem !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    /* Pricing Section */
    .block-pricing {
        padding: 4rem 1rem !important;
    }
    .pricing-card {
        width: 100% !important;
        max-width: 350px;
    }

    /* Contact Form Section */
    .block-contact {
        padding: 4rem 1rem !important;
    }
    .contact-container {
        padding: 1.5rem !important;
    }

    /* Footer */
    .site-footer {
        padding: 3rem 1rem 1.5rem 1rem !important;
    }
    .footer-container {
        flex-direction: column;
        gap: 2rem !important;
        align-items: center;
        text-align: center;
    }
    .footer-info {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links ul {
        padding: 0;
    }
}

/* ── Testimonials Block ── */
.block-testimonials {
    padding: 6rem 2rem;
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.block-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.testimonial-quote {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.testimonial-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ── Logo Bar Block ── */
.block-logo-bar {
    padding: 2.5rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.logo-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-bar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.logo-bar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: center;
    justify-content: center;
}

.logo-bar-item {
    display: flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    filter: grayscale(1);
}

.logo-bar-item:hover {
    opacity: 0.85;
}

.logo-bar-item img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.logo-bar-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .logo-bar-grid {
        gap: 1.5rem 2rem;
    }
}

/* ── Pain Section Block ── */
.block-pain-section {
    padding: 6rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.pain-section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.pain-opener {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.pain-opener-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.pain-opener-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.pain-card {
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-left: 3px solid #E2E8F0;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.pain-card:hover {
    border-left-color: var(--primary);
    box-shadow: 0 4px 16px rgba(1, 117, 122, 0.08);
    transform: translateY(-1px);
}

.pain-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.pain-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.pain-card-scenario {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.pain-card-impact {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #B45309;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 4px;
    padding: 0.5rem 0.625rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.pain-closing {
    display: flex;
    justify-content: center;
}

.pain-closing-line {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(1, 117, 122, 0.06);
    border: 1px solid rgba(1, 117, 122, 0.2);
    border-radius: 40px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .pain-grid {
        grid-template-columns: 1fr;
    }
    .block-pain-section {
        padding: 4rem 1.25rem;
    }
}

/* =========================================================================
   SIGNATURE LANDING PAGE EFFECTS (BR-CMS-UX-01 — THE LEDGER DESK & HUD)
   ========================================================================= */

/* 1. Top Instant Navigation Progress Bar */
.cms-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--primary);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: width 0.25s ease, opacity 0.2s ease;
}

.cms-nav-progress.is-loading {
    width: 78%;
    opacity: 1;
}

/* 2. Instant Header Theme Toggle (Light / Dark) */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-canvas);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.theme-toggle-btn .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle-btn .icon-moon,
body.layout-dark-mode .theme-toggle-btn .icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle-btn .icon-sun,
body.layout-dark-mode .theme-toggle-btn .icon-sun {
    display: block;
}

/* 3. Architectural Blueprint Grid Backdrop on Hero */
.block-hero {
    position: relative;
    overflow: hidden;
}

.hero-blueprint-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(1, 117, 122, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(1, 117, 122, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
    z-index: 0;
}

html[data-theme="dark"] .hero-blueprint-grid,
body.layout-dark-mode .hero-blueprint-grid {
    background-image:
        linear-gradient(to right, rgba(43, 165, 171, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(43, 165, 171, 0.09) 1px, transparent 1px);
}

.hero-split-container {
    position: relative;
    z-index: 1;
}

/* 4. Hero Badge Pulse & CTA Arrow Micro-motion */
.hero-badge {
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.hero-badge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-hero-primary {
    gap: 0.5rem;
}

.btn-arrow-icon {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover .btn-arrow-icon {
    transform: translateX(4px);
}

/* 5. Interactive Live ERP Dashboard Mockup */
.interactive-erp-mock {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.18s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.interactive-erp-mock:hover {
    border-color: var(--primary);
    box-shadow: 0 24px 64px rgba(1, 117, 122, 0.14), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.mock-titlebar {
    background: var(--bg-canvas);
    justify-content: space-between;
}

.mock-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mock-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 8px;
    border-radius: 4px;
}

html[data-theme="dark"] .mock-live-pill,
body.layout-dark-mode .mock-live-pill {
    color: #34D399;
}

.mock-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.mock-module-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-color);
}

.mock-tab-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    border-bottom: 2px solid transparent;
    padding: 8px 6px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-tab-btn:last-child {
    border-right: none;
}

.mock-tab-btn:hover {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.mock-tab-btn.active {
    color: var(--primary);
    background: var(--bg-card);
    border-bottom-color: var(--primary);
}

.interactive-erp-mock .mock-body {
    height: auto;
    min-height: 225px;
}

.interactive-erp-mock .mock-sidebar {
    background: var(--bg-canvas);
}

.interactive-erp-mock .mock-stat {
    background: var(--bg-canvas);
}

.interactive-erp-mock .mock-chart {
    background: var(--bg-canvas);
}

.mock-chart-path.draw-line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: drawChartLine 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawChartLine {
    to { stroke-dashoffset: 0; }
}

.stat-pop {
    animation: statPopAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes statPopAnim {
    0%   { opacity: 0.35; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.mock-vouchers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-voucher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
}

.mock-voucher-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.mock-voucher-desc {
    color: var(--text-muted);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-voucher-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mock-voucher-badge.badge-ok {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

html[data-theme="dark"] .mock-voucher-badge.badge-ok,
body.layout-dark-mode .mock-voucher-badge.badge-ok {
    color: #34D399;
}

.mock-statusbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-canvas);
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.mock-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(1, 117, 122, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 10px;
    flex-shrink: 0;
}

/* 6. Staggered Scroll Reveal & Mouse-Follow Card Spotlight */
.cms-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cms-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.cms-spotlight-card {
    position: relative;
    overflow: hidden;
}

.cms-spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        340px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(1, 117, 122, 0.08),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cms-spotlight-card:hover::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .cms-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .interactive-erp-mock {
        transform: none !important;
    }
    .hero-badge-pulse {
        animation: none !important;
    }
}



/* ── BR-CMS-SONNYTECH-01: content containers padding + Dark Mode fixes ── */
.custom-html-block > .pain-section-container,
.rich-text-content > .pain-section-container {
    padding: 3rem 1.5rem;
}

@media (max-width: 768px) {
    .custom-html-block > .pain-section-container,
    .rich-text-content > .pain-section-container {
        padding: 2rem 1rem;
    }
}

/* BR-CMS-PROSE-01: rich-text content flows as an article. .pain-section-container is a flex column with
   gap 3.5rem (meant for card sections); inside a Rich Text block that gap pushed every h1/h2/p/ul ~56px
   apart, leaving headings stranded. Normal flow + a tight heading rhythm instead. */
.rich-text-content > .pain-section-container {
    display: block;
    max-width: 920px;
}
.rich-text-content > .pain-section-container > :first-child { margin-top: 0; }
.rich-text-content > .pain-section-container > :last-child { margin-bottom: 0; }
.rich-text-content > .pain-section-container > h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}
.rich-text-content > .pain-section-container > h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}
.rich-text-content > .pain-section-container > h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}
.rich-text-content > .pain-section-container > p {
    margin-top: 0;
    margin-bottom: 0.85rem;
    line-height: 1.7;
}
.rich-text-content > .pain-section-container > ul,
.rich-text-content > .pain-section-container > ol {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}
.rich-text-content > .pain-section-container li {
    margin: 0.25rem 0;
    line-height: 1.65;
}

html[data-theme="dark"] .pain-card-impact,
body.layout-dark-mode .pain-card-impact {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FCD34D;
}

html[data-theme="dark"] .alert-success,
body.layout-dark-mode .alert-success {
    background-color: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

html[data-theme="dark"] .alert-danger,
body.layout-dark-mode .alert-danger {
    background-color: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

/* ── BR-CMS-TOPBAR-01: skip link, top bar, footer slogan/legal ── */
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    z-index: 3000;
    padding: 0.5rem 0.9rem;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: var(--border-radius, 4px);
    font-weight: 600;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; }
#main-content:focus { outline: none; }

.site-topbar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
}
.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.topbar-left, .topbar-right {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}
.site-topbar a.topbar-item { color: #FFFFFF; text-decoration: none; }
.site-topbar a.topbar-item:hover { text-decoration: underline; }
.footer-slogan {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}
.footer-legal {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .topbar-container { padding: 0.35rem 0.875rem; justify-content: center; }
    .topbar-left { display: none; }
    .topbar-right { gap: 0.9rem; justify-content: center; }
    .topbar-email { display: none; }
}

/* ── BR-CMS-LEAD-02: lead form qualifying fields ── */
.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}
.form-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    cursor: pointer;
}
.form-consent input { margin-top: 0.2rem; accent-color: var(--primary); }
.lead-next-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.lead-next-steps li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
@media (max-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

/* BR-CMS-CMDK-01: hop tim nhanh (Ctrl+K) - nhom, icon SVG, ten 1 dong, duong dan mo ben phai */
.cms-cmd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
}
.cms-cmd-modal {
    width: 100%;
    max-width: 600px;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.cms-cmd-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}
.cms-cmd-search > svg { flex: none; color: var(--primary, #01757A); }
.cms-cmd-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 1rem;
}
.cms-cmd-search input::placeholder { color: var(--text-muted); }
.cms-cmd-modal kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    padding: 0.15rem 0.4rem;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    background: var(--bg-canvas, #F8FAFC);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 5px;
}
.cms-cmd-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.5rem 0.6rem;
    overflow-y: auto;
    scrollbar-width: thin;
}
.cms-cmd-group {
    padding: 0.75rem 0.65rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cms-cmd-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.35;
}
.cms-cmd-item[hidden], .cms-cmd-group[hidden], .cms-cmd-empty[hidden] { display: none; }
.cms-cmd-item.is-active { background: var(--primary-light, rgba(1, 117, 122, 0.08)); }
.cms-cmd-item.is-active .cms-cmd-title { color: var(--primary, #01757A); }
.cms-cmd-icon {
    flex: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--bg-canvas, #F1F5F9);
    color: var(--text-muted);
}
.cms-cmd-item.is-active .cms-cmd-icon { background: var(--primary, #01757A); color: #fff; }
.cms-cmd-item.cms-cmd-child { padding-left: 2rem; }
.cms-cmd-child .cms-cmd-icon { background: transparent; width: 20px; }
.cms-cmd-child .cms-cmd-icon::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}
.cms-cmd-child.is-active .cms-cmd-icon { background: transparent; color: var(--primary, #01757A); }
.cms-cmd-title {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cms-cmd-path {
    flex: 0 1 auto;
    max-width: 45%;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cms-cmd-badge {
    flex: none;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 5px;
}
.cms-cmd-empty {
    padding: 1.5rem 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.cms-cmd-footer {
    display: flex;
    gap: 1.1rem;
    padding: 0.6rem 1.1rem;
    border-top: 1px solid var(--border-color, #E2E8F0);
    background: var(--bg-canvas, #F8FAFC);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.cms-cmd-footer span { display: inline-flex; align-items: center; gap: 0.3rem; }
@media (max-width: 600px) {
    .cms-cmd-overlay { padding-top: 4vh; }
    .cms-cmd-modal { max-height: 85vh; }
    .cms-cmd-path, .cms-cmd-footer { display: none; }
    .cms-cmd-item { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}

/* BR-CMS-MOSTREAD-01: "Đọc nhiều nhất" - xếp hạng, không hiện số người đọc */
.cms-most-read {
    margin: 2.5rem 0 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    background: var(--bg-card, #fff);
}
.cms-most-read--strip {
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: left;
}
.cms-most-read-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-main);
}
.cms-most-read-list {
    list-style: none;
    counter-reset: mostread;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.cms-most-read--strip .cms-most-read-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem;
}
.cms-most-read-list li {
    counter-increment: mostread;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    line-height: 1.45;
}
.cms-most-read-list li::before {
    content: counter(mostread);
    flex: none;
    width: 1.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary, #01757A);
}
.cms-most-read-list a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
}
.cms-most-read-list a:hover {
    color: var(--primary, #01757A);
    text-decoration: underline;
}
