/* ==========================================================
   OnCredit.cz – Premium Design System v2
   Professional financial affiliate – Czech Republic
   ========================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Brand palette — Fresh Green */
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10B981;
    --primary-50: #ECFDF5;
    --primary-100: #D1FAE5;
    --primary-200: #A7F3D0;
    --accent: #FBBF24;
    --accent-hover: #F59E0B;
    --accent-light: #FEF3C7;

    /* Semantic */
    --success: #0284C7;
    --success-light: #E0F2FE;
    --success-50: #F0F9FF;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --info: #0EA5E9;
    --info-light: #E0F2FE;

    /* Neutrals */
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-warm: #FFFBEB;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --text: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --text-disabled: #CBD5E1;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --divider: #E2E8F0;

    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: .75rem;
    --text-sm: .85rem;
    --text-base: .95rem;
    --text-md: 1.05rem;
    --text-lg: 1.2rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3rem;
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
    --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
    --shadow: 0 4px 16px rgba(15,23,42,.08);
    --shadow-md: 0 8px 24px rgba(15,23,42,.10);
    --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
    --shadow-xl: 0 20px 60px rgba(15,23,42,.16);
    --shadow-primary: 0 8px 32px rgba(5,150,105,.18);
    --shadow-accent: 0 8px 32px rgba(251,191,36,.25);

    /* Misc */
    --transition: .25s cubic-bezier(.4,0,.2,1);
    --transition-slow: .4s cubic-bezier(.4,0,.2,1);
    --max-w: 1200px;
    --max-w-narrow: 780px;
    --max-w-wide: 1400px;
    --header-h: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: var(--leading-normal); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); font-size: 1rem; }
::selection { background: var(--primary-100); color: var(--primary-dark); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--space-lg); }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 var(--space-lg); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 13px 28px; border-radius: var(--radius-sm); font-weight: 700;
    font-size: var(--text-sm); transition: all var(--transition); white-space: nowrap;
    letter-spacing: .01em; position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    opacity: 0; transition: opacity var(--transition);
    background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 100%);
}
.btn:hover::after { opacity: 1; }
.btn-accent { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); color: var(--text); box-shadow: var(--shadow-accent); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(251,191,36,.35); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(5,150,105,.28); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--primary); padding: 8px 16px; }
.btn-ghost:hover { background: var(--primary-50); }
.btn-lg { padding: 16px 36px; font-size: var(--text-base); border-radius: var(--radius); }
.btn-sm { padding: 8px 18px; font-size: var(--text-xs); }
.btn-full { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm); }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-lg);
}
.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 900; gap: 9px; }
.logo-text { display: flex; align-items: baseline; }
.logo-mark { flex-shrink: 0; }
.logo-on { color: var(--primary); }
.logo-credit { color: var(--text); }
.logo-cz { color: var(--text-light); font-size: .85rem; font-weight: 700; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
    font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
    padding: 8px 14px; border-radius: var(--radius-xs);
    transition: all var(--transition);
}
.nav a:hover { color: var(--primary); background: var(--primary-50); }
.header-cta { display: block; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-top: var(--header-h);
    padding: 16px var(--space-lg) 14px; font-size: var(--text-sm); color: var(--text-muted);
    display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
    font-weight: 500;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); padding: 3px 7px; border-radius: 6px; text-decoration: none; }
.breadcrumb a:first-child { display: inline-flex; align-items: center; gap: 5px; }
/* Icon nhà (home) trước link "Domů" */
.breadcrumb a:first-child::before {
    content: ''; width: 14px; height: 14px; flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m3%209%209-7%209%207v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%27%2F%3E%3Cpolyline%20points%3D%279%2022%209%2012%2015%2012%2015%2022%27%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m3%209%209-7%209%207v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z%27%2F%3E%3Cpolyline%20points%3D%279%2022%209%2012%2015%2012%2015%2022%27%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
.breadcrumb a:hover { color: var(--primary); background: var(--primary-50); }
.breadcrumb span { margin: 0 3px; color: var(--text-light); }
/* Mục cuối (trang hiện tại) đậm hơn */
.breadcrumb { font-weight: 600; }
.breadcrumb a { font-weight: 500; }

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 32px 0 56px;
    background: linear-gradient(160deg, var(--primary-50) 0%, #FFFFFF 40%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}
.page-hero { border-bottom: 1px solid var(--border-light); }
.page-hero::before, .page-hero::after { display: none; }
/* Logo nhà cung cấp ở đầu trang review */
.provider-logo-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    max-width: 220px;
    height: 72px;
    padding: 12px 20px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--border-light, #e6ebf1);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,.08);
}
.provider-logo-hero img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.provider-logo-hero span {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary, #059669);
    letter-spacing: -.02em;
}
.page-hero h1 {
    font-size: var(--text-3xl); font-weight: 900; line-height: var(--leading-tight);
    margin-bottom: 14px; color: var(--text);
    letter-spacing: -.02em;
}
.page-hero .subtitle {
    font-size: var(--text-md); color: var(--text-muted); max-width: 640px;
    line-height: var(--leading-relaxed);
}
.page-hero .badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-100); color: var(--primary);
    padding: 6px 16px; border-radius: var(--radius-full);
    font-size: var(--text-xs); font-weight: 700; margin-bottom: 18px;
    border: 1px solid var(--primary-200);
}
.page-hero .hero-meta {
    display: flex; gap: var(--space-lg); margin-top: var(--space-lg);
    flex-wrap: wrap;
}
.page-hero .hero-meta-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary);
    background: rgba(255,255,255,.85); border: 1px solid var(--border);
    padding: 7px 14px; border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.page-hero .hero-meta-item .ic { color: var(--primary); }
.page-hero .hero-meta-item strong { color: var(--text); }

/* ===== ARTICLE LAYOUT ===== */
.article-layout {
    display: grid; grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    padding: var(--space-2xl) var(--space-lg) var(--space-4xl);
}
/* Khi article-layout đã nằm trong <section> (có sẵn padding lớn),
   bỏ padding DỌC riêng để tránh khoảng trống trắng gấp đôi giữa hero và nội dung.
   GIỮ padding NGANG của .container (24px) để nội dung không chạm sát mép màn hình. */
.section > .article-layout { padding-top: 0; padding-bottom: 0; padding-left: var(--space-lg); padding-right: var(--space-lg); }
.section:has(> .article-layout) { padding: var(--space-lg) 0 var(--space-4xl); }

/* ===== ARTICLE CONTENT ===== */
.article-content { min-width: 0; }
/* Giới hạn độ rộng dòng chữ để dễ đọc (~72 ký tự); bảng/box vẫn full-width */
.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > h2,
.article-content > h3,
.article-content > blockquote { max-width: 72ch; }

.article-content h2 {
    font-size: var(--text-2xl); font-weight: 800;
    margin: var(--space-3xl) 0 var(--space-lg); color: var(--text);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    letter-spacing: -.02em; line-height: 1.25;
    position: relative;
}
.article-content h2::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 64px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.article-content h2:first-of-type { margin-top: 0; }

.article-content h3 {
    font-size: var(--text-lg); font-weight: 800;
    margin: var(--space-2xl) 0 var(--space-sm); color: var(--text);
    position: relative; padding-left: 15px; letter-spacing: -.01em;
}
.article-content h3::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
    width: 4px; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

.article-content p {
    margin-bottom: var(--space-md); color: var(--text-secondary);
    line-height: var(--leading-relaxed); font-size: var(--text-base);
}

.article-content ul, .article-content ol {
    margin: 0 0 var(--space-lg) 0; color: var(--text-secondary);
    padding-left: 0; list-style: none;
}
/* List "thường" (con trực tiếp của .article-content). Các list có style riêng
   (.pros-col, .cons-col, .steps-list, .key-takeaway, .toc, .sidebar-card)
   KHÔNG bị áp rule này để tránh chồng bullet. */
.article-content > ul > li,
.article-content > ol > li {
    position: relative; margin-bottom: 10px; line-height: var(--leading-relaxed);
    font-size: var(--text-base);
}
/* Bullet tùy chỉnh cho <ul>: dấu check tròn xanh */
.article-content > ul > li {
    padding-left: 30px;
}
.article-content > ul > li::before {
    content: ''; position: absolute; left: 0; top: .4em;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary-50);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23059669%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20%206%209%2017l-5-5%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}
/* Số thứ tự dạng badge tròn cho <ol> thường (không phải steps-list) */
.article-content > ol:not(.steps-list) { counter-reset: ol-counter; }
.article-content > ol:not(.steps-list) > li { counter-increment: ol-counter; padding-left: 44px; }
.article-content > ol:not(.steps-list) > li::before {
    content: counter(ol-counter); position: absolute; left: 0; top: .05em;
    width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; font-size: .8rem; font-weight: 800; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Link văn bản — loại trừ .btn để nút CTA giữ nguyên màu/không gạch chân */
.article-content a:not(.btn) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-content a:not(.btn):hover { color: var(--primary-dark); text-decoration-thickness: 2px; }
/* Nút bên trong bài viết: đảm bảo không gạch chân, không kế thừa màu link */
.article-content a.btn { text-decoration: none; }

.article-content strong { color: var(--text); font-weight: 700; }

/* Blockquote */
.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-50);
    padding: var(--space-lg) var(--space-xl); margin: var(--space-xl) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-secondary);
    position: relative;
}
.article-content blockquote::before {
    content: '\201C'; position: absolute; top: -6px; right: 14px;
    font-size: 4rem; line-height: 1; color: var(--primary-100);
    font-family: Georgia, serif; pointer-events: none;
}

/* Tables – professional financial style */
.article-content table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    margin: var(--space-xl) 0; font-size: var(--text-sm);
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    background: #fff;
}
/* Nền gradient áp thẳng lên th (không phụ thuộc thẻ <thead>) — header luôn hiện đúng */
.article-content thead,
.article-content tr:first-child th,
.article-content th {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.article-content th {
    padding: 14px 18px; text-align: left; font-weight: 700;
    color: #fff; font-size: var(--text-xs); text-transform: uppercase;
    letter-spacing: .06em; border: none;
    border-right: 1px solid rgba(255,255,255,.12);
    vertical-align: middle;
}
.article-content th:last-child { border-right: none; }
.article-content td {
    padding: 13px 18px; border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary); border-left: none; border-right: none;
    vertical-align: middle; white-space: nowrap;
}
/* Cột đầu (tên/logo provider) cho phép xuống dòng nếu cần; các cột số liệu giữ 1 dòng */
.article-content td:first-child { white-space: normal; }
.article-content tr:last-child td { border-bottom: none; }
.article-content tr { transition: background var(--transition); }
/* Sọc ngựa vằn: dòng chẵn tính từ hàng đầu tiên (kể cả khi không có <tbody>) */
.article-content tr:nth-child(even) td { background: var(--bg-alt); }
.article-content tr:hover td { background: var(--primary-50); }
.article-content td:first-child { font-weight: 600; color: var(--text); }
/* Cuộn ngang trên mobile để bảng không vỡ layout */
.article-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-xl) 0; }
.article-content .table-scroll table { margin: 0; }

/* Alert boxes — icon-based, editorial left accent */
.article-content .info-box, .article-content .warning-box,
.article-content .tip-box, .article-content .danger-box, .alert {
    border-radius: var(--radius);
    padding: var(--space-lg) var(--space-xl) var(--space-lg) 58px;
    margin: var(--space-xl) 0; position: relative;
    font-size: var(--text-sm); line-height: var(--leading-relaxed);
    display: block;
    border: 1px solid; border-left-width: 4px;
}
.article-content .info-box::before, .article-content .warning-box::before,
.article-content .tip-box::before, .article-content .danger-box::before, .alert::before {
    content: ''; position: absolute; left: 24px; top: 27px;
    width: 20px; height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--al-ic) no-repeat center / contain;
    mask: var(--al-ic) no-repeat center / contain;
}
.article-content .info-box, .alert-info {
    --al-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%2016v-4%22%2F%3E%3Cpath%20d%3D%22M12%208h.01%22%2F%3E%3C%2Fsvg%3E");
    background: #F0F9FF; border-color: #BAE6FD; border-left-color: #0EA5E9; color: #0C4A6E;
}
.article-content .warning-box, .alert-warning {
    --al-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22m21.73%2018-8-14a2%202%200%200%200-3.48%200l-8%2014A2%202%200%200%200%204%2021h16a2%202%200%200%200%201.73-3Z%22%2F%3E%3Cpath%20d%3D%22M12%209v4%22%2F%3E%3Cpath%20d%3D%22M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
    background: #FFFBEB; border-color: #FDE68A; border-left-color: #F59E0B; color: #78350F;
}
.article-content .tip-box, .alert-tip {
    --al-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M15%2014c.2-1%20.7-1.7%201.5-2.5%201-.9%201.5-2.2%201.5-3.5A6%206%200%200%200%206%208c0%201%20.2%202.2%201.5%203.5.7.7%201.3%201.5%201.5%202.5%22%2F%3E%3Cpath%20d%3D%22M9%2018h6%22%2F%3E%3Cpath%20d%3D%22M10%2022h4%22%2F%3E%3C%2Fsvg%3E");
    background: #ECFDF5; border-color: #A7F3D0; border-left-color: #059669; color: #064E3B;
}
.article-content .danger-box, .alert-danger {
    --al-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolygon%20points%3D%227.86%202%2016.14%202%2022%207.86%2022%2016.14%2016.14%2022%207.86%2022%202%2016.14%202%207.86%22%2F%3E%3Cpath%20d%3D%22M12%208v4%22%2F%3E%3Cpath%20d%3D%22M12%2016h.01%22%2F%3E%3C%2Fsvg%3E");
    background: #FEF2F2; border-color: #FECACA; border-left-color: #DC2626; color: #7F1D1D;
}

/* Pros / Cons list */
.article-content .pros-cons {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg);
    margin: var(--space-xl) 0;
}
.article-content .pros-col, .article-content .cons-col {
    border-radius: var(--radius); padding: 20px 22px;
}
.article-content .pros-col {
    background: var(--primary-50); border: 1px solid #A7F3D0;
}
.article-content .cons-col {
    background: #FFF7ED; border: 1px solid #FDBA74;
}
.article-content .pros-col h4, .article-content .cons-col h4 {
    font-size: var(--text-sm); font-weight: 800; margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: .04em;
    padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.article-content .pros-col h4 { color: var(--primary); }
.article-content .cons-col h4 { color: var(--warning); }
.article-content .pros-col ul, .article-content .cons-col ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 11px;
}
.article-content .pros-col li, .article-content .cons-col li {
    padding: 0; font-size: var(--text-sm); padding-left: 0; margin: 0;
    display: flex; gap: 10px; align-items: flex-start;
    line-height: 1.5; color: var(--text-secondary);
}
.article-content .pros-col li::before, .article-content .cons-col li::before {
    content: ''; flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px;
    position: static; border-radius: 0; background-image: none;
    -webkit-mask: var(--pc-ic) no-repeat center / contain;
    mask: var(--pc-ic) no-repeat center / contain;
}
.article-content .pros-col li::before { --pc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M22%2011.08V12a10%2010%200%201%201-5.93-9.14%22%2F%3E%3Cpath%20d%3D%22m9%2011%203%203L22%204%22%2F%3E%3C%2Fsvg%3E"); background-color: var(--primary); }
.article-content .cons-col li::before { --pc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22m21.73%2018-8-14a2%202%200%200%200-3.48%200l-8%2014A2%202%200%200%200%204%2021h16a2%202%200%200%200%201.73-3Z%22%2F%3E%3Cpath%20d%3D%22M12%209v4%22%2F%3E%3Cpath%20d%3D%22M12%2017h.01%22%2F%3E%3C%2Fsvg%3E"); background-color: var(--warning); }
.pros-col h4 .ic, .cons-col h4 .ic { width: 15px; height: 15px; margin-right: 4px; }

/* Key takeaway box */
.article-content .key-takeaway {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: var(--space-xl);
    margin: var(--space-xl) 0; box-shadow: var(--shadow-primary);
    position: relative; overflow: hidden;
}
/* Chữ đậm bên trong box màu phải là trắng (ghi đè rule strong đen chung) */
.article-content .key-takeaway strong,
.article-content .key-takeaway a { color: #fff; font-weight: 800; }
.article-content .key-takeaway h4 {
    font-size: var(--text-base); margin-bottom: var(--space-sm);
    color: #fff; font-weight: 800; text-transform: uppercase;
    letter-spacing: .04em; display: flex; align-items: center; gap: 9px;
}
.article-content .key-takeaway h4::before {
    content: ''; flex-shrink: 0; width: 17px; height: 17px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1%201%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1%201%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
.article-content .key-takeaway p { color: rgba(255,255,255,.9); margin: 0; }
.article-content .key-takeaway ul { color: rgba(255,255,255,.9); }
.article-content .key-takeaway li { color: rgba(255,255,255,.9); }

/* Number highlight */
.article-content .highlight-number {
    display: flex; gap: var(--space-lg); flex-wrap: wrap;
    margin: var(--space-xl) 0;
}
.article-content .highlight-number .hn-item {
    flex: 1; min-width: 140px; text-align: center;
    padding: var(--space-lg); background: #fff;
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
}
.article-content .highlight-number .hn-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.article-content .highlight-number .hn-value {
    display: block; font-size: var(--text-2xl); font-weight: 900;
    color: var(--primary); line-height: 1;
}
.article-content .highlight-number .hn-label {
    display: block; font-size: var(--text-xs); color: var(--text-muted);
    margin-top: 6px; font-weight: 600;
}

/* Comparison table highlight */
.article-content .compare-table {
    overflow-x: auto; margin: var(--space-xl) 0;
    max-width: 100%; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border); border-radius: var(--radius);
}
.article-content .compare-table table { min-width: 500px; margin: 0; border: none; box-shadow: none; }
.article-content .compare-table td.best {
    color: var(--primary-dark); font-weight: 800;
    background: var(--primary-50);
    position: relative;
}
.article-content .compare-table td.best::after {
    content: ' \2713'; color: var(--primary);
}

/* Cột nhà cung cấp trong bảng: logo trong khung chữ nhật + tên */
.article-content .cell-provider {
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none; font-weight: 700;
}
.article-content .cell-provider .cell-logo {
    width: 90px; height: 44px; flex-shrink: 0;
    object-fit: contain;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: 8px; padding: 6px 10px;
    box-shadow: var(--shadow-xs);
}
.article-content .cell-provider span {
    color: var(--primary); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1.5px;
    white-space: nowrap;
}
.article-content .cell-provider:hover span { color: var(--primary-dark); }
.article-content .cell-note { color: var(--text-muted); font-style: normal; font-size: .9em; margin-left: 2px; white-space: nowrap; }

/* Steps / Process */
.article-content .steps-list { counter-reset: step; margin: var(--space-xl) 0; }
.article-content .steps-list .step-item {
    counter-increment: step;
    display: flex; gap: var(--space-md); padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-light);
}
.article-content .steps-list .step-item:last-child { border-bottom: none; }
.article-content .steps-list .step-item::before {
    content: counter(step);
    flex-shrink: 0; width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-50);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: var(--text-sm);
}
.article-content .steps-list .step-item h4 {
    font-size: var(--text-base); margin-bottom: 4px;
}
.article-content .steps-list .step-item p {
    font-size: var(--text-sm); margin: 0; color: var(--text-muted);
}
/* steps-list with plain <li> (no .step-item wrapper).
   Badge dùng absolute + padding-left (KHÔNG dùng flex trên <li>) —
   flex sẽ tách text node và <strong> thành các item riêng và làm vỡ dòng. */
.article-content ol.steps-list { list-style: none; padding: 0; counter-reset: step; }
.article-content ol.steps-list > li {
    counter-increment: step; display: block; position: relative;
    padding: 16px 4px 16px 50px; margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--text-base); line-height: var(--leading-relaxed);
}
.article-content ol.steps-list > li:last-child { border-bottom: none; }
.article-content ol.steps-list > li::before {
    content: counter(step); position: absolute; left: 4px; top: 14px;
    width: 34px; height: 34px; box-sizing: border-box;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border-radius: 50%;
    box-shadow: 0 2px 8px rgba(5,150,105,.28);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: var(--text-sm); line-height: 1;
}

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: var(--space-lg); }

.sidebar-cta {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg); padding: var(--space-xl);
    text-align: center; color: #fff; box-shadow: var(--shadow-primary);
    position: relative; overflow: hidden;
}
.sidebar-cta::before { display: none; }
.sidebar-cta h4 { color: #fff; font-size: var(--text-lg); margin-bottom: var(--space-sm); font-weight: 800; }
.sidebar-cta p { font-size: var(--text-sm); color: rgba(255,255,255,.8); margin-bottom: var(--space-md); }
.sidebar-cta .btn { position: relative; z-index: 1; }

.sidebar-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
    font-size: var(--text-sm); font-weight: 800; margin-bottom: var(--space-md);
    text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
}
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 0; }
.sidebar-card li a {
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: var(--text-sm); color: var(--text-secondary);
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}
.sidebar-card li a::before { content: '\203A'; color: var(--text-disabled); font-weight: 700; }
.sidebar-card li a:hover { color: var(--primary); background: var(--primary-50); }
.sidebar-card li a:hover::before { color: var(--primary); }

/* ===== SECTION ===== */
.section { padding: var(--space-4xl) 0; }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }
.section-title {
    text-align: center; font-size: var(--text-2xl); font-weight: 900;
    margin-bottom: var(--space-sm); letter-spacing: -.02em; color: var(--text);
    position: relative; padding-bottom: 14px;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.section-sub {
    text-align: center; color: var(--text-muted);
    font-size: var(--text-md); margin-bottom: var(--space-2xl);
    max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== CARD SYSTEM ===== */
.card-grid { display: grid; gap: var(--space-lg); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: var(--space-xl);
    box-shadow: var(--shadow-xs); position: relative;
    transition: all var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-sm); font-weight: 800; }
.card p { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }
.card .card-icon {
    font-size: 2.2rem; margin-bottom: var(--space-md);
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-50); border-radius: var(--radius);
}
.card .card-tag {
    font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--primary); margin-bottom: var(--space-sm);
}
.card .card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--text-sm); font-weight: 700; color: var(--primary);
    margin-top: var(--space-md); transition: gap var(--transition);
}
.card .card-link:hover { gap: 10px; }

/* Featured card variant */
.card-featured {
    border: 2px solid var(--primary-200); background: linear-gradient(180deg, var(--primary-50) 0%, #fff 100%);
}
.card-featured:hover { border-color: var(--primary); }

/* ===== OFFER CARDS ===== */
.offer-list { display: flex; flex-direction: column; gap: var(--space-lg); }

.offer-card {
    border: 2px solid var(--border); border-radius: var(--radius-lg);
    padding: 0; transition: all var(--transition); position: relative;
    background: #fff; overflow: hidden;
}
.offer-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.offer-card.recommended { border-color: var(--accent); box-shadow: var(--shadow-accent); }

.offer-badge {
    position: absolute; top: 0; right: var(--space-lg);
    padding: 6px 16px; border-radius: 0 0 var(--radius-xs) var(--radius-xs);
    font-size: var(--text-xs); font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #78350F;
}
.offer-badge.promo { background: var(--primary); color: #fff; }
.offer-badge.promo .ic { color: #fff; }

.offer-card-inner { padding: var(--space-xl); }

.offer-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--space-md); padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}
.offer-name { font-size: var(--text-lg); font-weight: 900; }
.offer-logo-frame {
    flex-shrink: 0;
    width: 140px; height: 56px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    padding: 8px 14px;
}
.offer-logo-frame img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.offer-promo {
    font-size: var(--text-xs); color: var(--success); font-weight: 700;
    background: var(--success-50); padding: 4px 10px; border-radius: var(--radius-full);
}

.offer-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm); margin-bottom: var(--space-lg);
}
.offer-stat {
    text-align: center; padding: var(--space-sm);
    background: var(--bg-alt); border-radius: var(--radius-sm);
}
.offer-stat-label {
    display: block; font-size: 10px; color: var(--text-light);
    text-transform: uppercase; font-weight: 700; letter-spacing: .06em;
    margin-bottom: 4px;
}
.offer-stat-value { display: block; font-size: var(--text-base); font-weight: 900; color: var(--text); }

.offer-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: var(--space-md); border-top: 1px solid var(--border-light);
}
.offer-info {
    font-size: var(--text-xs); color: var(--text-light);
    display: flex; align-items: center; gap: 6px;
}

.offer-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-md); }
.offer-perk {
    font-size: var(--text-xs); font-weight: 600; color: var(--primary-dark);
    background: var(--primary-50); border: 1px solid var(--primary-100);
    padding: 4px 12px; border-radius: var(--radius-full);
}
.offer-cta {
    display: flex; align-items: center; justify-content: center; width: 100%;
    padding: 13px 24px; border-radius: var(--radius-sm);
    font-weight: 800; font-size: var(--text-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; box-shadow: var(--shadow-primary);
    transition: all var(--transition);
}
.offer-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(5,150,105,.28); }
.offer-cta.gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #78350F; box-shadow: var(--shadow-accent);
}
.offer-cta.gold:hover { box-shadow: 0 12px 36px rgba(251,191,36,.35); }
.article-content a.offer-cta { color: #fff; text-decoration: none; }
.article-content a.offer-cta:hover { color: #fff; }
.article-content a.offer-cta.gold, .article-content a.offer-cta.gold:hover { color: #78350F; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: var(--space-sm); overflow: hidden; background: #fff;
    transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--primary-200); }
.faq-item.open { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }

.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px var(--space-xl); font-size: var(--text-base);
    font-weight: 700; color: var(--text); text-align: left;
    transition: all var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-arrow {
    font-size: var(--text-lg); transition: transform var(--transition);
    color: var(--text-light); flex-shrink: 0; margin-left: var(--space-md);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; padding: 0 var(--space-xl); }
.faq-item.open .faq-a { max-height: 500px; padding: 0 var(--space-xl) var(--space-lg); }
.faq-a p { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: var(--space-4xl) 0; position: relative; overflow: hidden;
}
.cta-section::before, .cta-section::after { display: none; }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 {
    font-size: var(--text-3xl); font-weight: 900; color: #fff;
    margin-bottom: var(--space-md); letter-spacing: -.02em;
}
.cta-inner p { color: rgba(255,255,255,.8); font-size: var(--text-md); margin-bottom: var(--space-xl); max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark); color: rgba(255,255,255,.65);
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: var(--space-xl); margin-bottom: var(--space-xl);
}
.footer-secondary {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: var(--space-lg); margin-bottom: var(--space-lg);
}
.footer-links-row {
    display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg);
}
.footer-links-row a {
    font-size: var(--text-xs); color: rgba(255,255,255,.5);
    transition: color var(--transition);
}
.footer-links-row a:hover { color: var(--accent); }
.footer-logo { font-size: 1.4rem; font-weight: 900; margin-bottom: var(--space-md); display: flex; align-items: center; gap: 8px; }
.footer-logo .logo-text { display: flex; align-items: baseline; }
.footer-logo .logo-on { color: var(--primary-light); }
.footer-logo .logo-credit { color: #fff; }
.footer-logo .logo-cz { color: var(--text-light); font-size: .85rem; }
.footer-col p { font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.footer-col h4 {
    color: #fff; font-size: var(--text-xs); margin-bottom: var(--space-md);
    text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
}
.footer-col a {
    display: block; font-size: var(--text-sm);
    color: rgba(255,255,255,.5); margin-bottom: var(--space-sm);
    transition: all var(--transition); padding: 2px 0;
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: var(--space-xl); text-align: center;
}
.footer-bottom p { font-size: var(--text-xs); }
.footer-disclaimer {
    margin-top: var(--space-sm); font-size: 11px;
    color: rgba(255,255,255,.3); max-width: 800px;
    margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* ===== AUTHOR BOX ===== */
.author-box {
    display: flex; gap: 16px; align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--primary-50), #fff 70%);
    border-radius: var(--radius); margin: var(--space-xl) 0;
    border: 1px solid var(--primary-100); box-shadow: var(--shadow-xs);
    position: relative;
}
.author-avatar {
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: var(--text-lg); flex-shrink: 0;
    box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(5,150,105,.28);
}
.author-info strong {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: var(--text-base); color: var(--text); font-weight: 800;
}
/* Huy hiệu "tác giả đã xác minh" bằng dấu check nhỏ */
.author-info strong::after {
    content: ''; width: 15px; height: 15px; border-radius: 50%;
    background: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27white%27%20stroke-width%3D%273.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20%206%209%2017l-5-5%27%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 10px;
}
.author-info span {
    font-size: var(--text-xs); color: var(--text-muted); margin-top: 3px;
    display: flex; align-items: center; gap: 8px;
}
.author-info span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.author-info p { font-size: var(--text-xs); color: var(--text-muted); margin-top: 5px; max-width: none; }

/* ===== CALCULATOR ===== */
.calc-wrapper {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: var(--space-xl);
    box-shadow: var(--shadow-md); max-width: 560px; margin: 0 auto var(--space-2xl);
    position: relative;
}
.calc-wrapper::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.calc-field { margin-bottom: var(--space-xl); }
.calc-field label {
    font-size: var(--text-xs); font-weight: 800; color: var(--text-muted);
    display: block; margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .06em;
}
.calc-value {
    font-size: var(--text-xl); font-weight: 900; color: var(--primary);
    margin-bottom: var(--space-sm);
}
input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary) 50%, var(--border) 50%);
    outline: none; cursor: pointer; margin: 4px 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(5,150,105,.25); cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15); box-shadow: 0 4px 16px rgba(5,150,105,.35);
}
input[type="range"]::-moz-range-thumb {
    width: 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(5,150,105,.25); cursor: pointer;
}
.calc-range {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--text-disabled); margin-top: 6px; font-weight: 600;
}
.calc-results {
    background: var(--bg-alt); border-radius: var(--radius);
    padding: var(--space-lg); margin: var(--space-xl) 0;
    border: 1px solid var(--border-light);
}
.calc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-sm) 0; font-size: var(--text-sm);
}
.calc-row + .calc-row { border-top: 1px solid var(--border-light); }
.calc-row span { color: var(--text-muted); }
.calc-row strong { color: var(--primary); font-size: var(--text-base); }

/* ===== GLOSSARY ===== */
.glossary-nav {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-xl);
}
.glossary-nav a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: var(--text-sm); border-radius: var(--radius-xs);
    border: 1px solid var(--border); color: var(--text-muted);
    transition: all var(--transition);
}
.glossary-nav a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.glossary-item {
    padding: var(--space-lg) 0; border-bottom: 1px solid var(--border-light);
    display: grid; grid-template-columns: 180px 1fr; gap: var(--space-lg);
    align-items: start;
}
.glossary-item:last-child { border-bottom: none; }
.glossary-term {
    font-size: var(--text-base); font-weight: 800; color: var(--primary);
    position: sticky; top: calc(var(--header-h) + 16px);
}
.glossary-def { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); }

/* ===== STATS PAGE ===== */
.stat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg); margin: var(--space-xl) 0;
}
.stat-box {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: var(--space-xl);
    text-align: center; box-shadow: var(--shadow-sm);
    transition: all var(--transition); position: relative; overflow: hidden;
}
.stat-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-box .num { font-size: var(--text-3xl); font-weight: 900; color: var(--primary); line-height: 1; }
.stat-box .label { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: var(--space-xl);
    margin-bottom: var(--space-xl); box-shadow: var(--shadow-xs);
    position: relative;
}
.toc::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
    background: var(--primary); border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.toc h4 {
    font-size: var(--text-xs); font-weight: 800; margin-bottom: var(--space-md);
    text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
}
.toc ol { padding-left: 0; counter-reset: toc; list-style: none; }
.toc li {
    margin-bottom: var(--space-sm); counter-increment: toc;
    display: flex; align-items: flex-start; gap: 10px;
}
.toc li::before {
    content: counter(toc); flex-shrink: 0;
    width: 22px; height: 22px; margin-top: 3px;
    background: var(--primary-50); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}
.toc a {
    font-size: var(--text-sm); color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 4px 0; transition: color var(--transition);
}
.toc a:hover { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
    .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .sidebar > * { flex: 1; min-width: 260px; }
}
@media (max-width: 768px) {
    :root { --space-4xl: 64px; }
    /* ===== MENU MOBILE (đồng bộ với trang chủ) ===== */
    .header { z-index: 1000; }
    .nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0; width: 100%;
        background: #fff;
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px 16px 18px;
        box-shadow: 0 12px 28px rgba(15,23,42,.15);
        border-bottom: 1px solid var(--border);
        z-index: 1000;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }
    .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav a {
        display: block; text-align: left;
        padding: 14px 14px; border-radius: var(--radius-sm);
        font-size: 1.05rem; font-weight: 600; color: var(--text);
        border-bottom: 1px solid var(--border);
    }
    .nav a:last-child { border-bottom: none; }
    .nav a:active, .nav a:hover { background: var(--primary-50); color: var(--primary); }
    .header-cta { display: none; }
    .burger { display: flex; position: relative; z-index: 1001; margin-right: 4px; }
    .header-inner { padding-left: 20px; padding-right: 20px; }
    /* Lớp phủ tối phía sau menu */
    .nav-backdrop {
        position: fixed; inset: 0; top: var(--header-h);
        background: rgba(9,18,36,.5);
        opacity: 0; visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
        z-index: 990;
    }
    .nav-backdrop.open { opacity: 1; visibility: visible; }
    .page-hero { padding: 20px 0 32px; }
    .page-hero h1 { font-size: var(--text-2xl); }
    .section-title { font-size: var(--text-xl); }
    .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
    .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .offer-stats { grid-template-columns: repeat(2, 1fr); }
    .offer-footer { flex-direction: column; gap: var(--space-sm); }
    .glossary-item { grid-template-columns: 1fr; gap: var(--space-xs); }
    .article-content .pros-cons { grid-template-columns: 1fr; }
    .cta-inner h2 { font-size: var(--text-2xl); }
}
@media (max-width: 480px) {
    :root { --space-4xl: 48px; }
    .page-hero h1 { font-size: var(--text-xl); }
    .card-grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-links-row { gap: 8px 16px; }
    .stat-grid { grid-template-columns: 1fr; }
    .offer-stats { grid-template-columns: repeat(2, 1fr); }
    .sidebar { flex-direction: column; }
    .sidebar > * { min-width: 100%; }
    .cta-inner h2 { font-size: var(--text-xl); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeUp { animation: fadeUp .5s ease both; }
.animate-fadeIn { animation: fadeIn .5s ease both; }

/* ===== PRINT ===== */
@media print {
    .header, .footer, .sidebar, .cta-section, .burger, .btn { display: none !important; }
    .article-layout { grid-template-columns: 1fr; }
    .page-hero { padding-top: 0; background: none; }
    body { font-size: 12pt; color: #000; }
}

/* ===== MOBILE OFFER CARDS & TABLES ===== */
@media (max-width: 640px) {
    .offer-header { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
    .offer-name { display: block; margin-bottom: 6px; }
    .offer-promo { display: inline-block; line-height: 1.5; }
    .offer-logo-frame { width: 124px; height: 46px; padding: 6px 10px; }
    .offer-card-inner { padding: var(--space-lg); }
    .article-layout { padding-top: var(--space-lg); }
}
@media (max-width: 768px) {
    .article-content .compare-table::before {
        content: '\2190 Posunutím zobrazíte celou tabulku \2192';
        position: sticky; left: 0;
        display: block; width: fit-content;
        margin: 0 auto 6px;
        font-size: .7rem; font-weight: 600; color: var(--text-light);
    }
    .article-content .compare-table th:first-child,
    .article-content .compare-table td:first-child {
        position: sticky; left: 0; z-index: 2;
        background: #fff;
        box-shadow: 2px 0 6px rgba(15,23,42,.08);
    }
    .article-content .compare-table thead th:first-child { background: var(--primary-dark); }
    .article-content .compare-table tbody tr:nth-child(even) td:first-child { background: var(--bg-alt); }
}

/* ===== RELATED LINKS (SEO internal-link hub) ===== */
.related-links {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 2px solid var(--border);
}
.related-links h2 { border: none; padding: 0; margin-bottom: var(--space-lg); }
.related-links h2::after { display: none; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.related-col h4 {
    font-size: var(--text-xs); font-weight: 800; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-muted); margin-bottom: var(--space-sm);
}
.related-col a {
    display: block; font-size: var(--text-sm); color: var(--primary);
    padding: 4px 0; transition: color var(--transition);
}
.related-col a:hover { color: var(--primary-dark); text-decoration: underline; }
@media (max-width: 768px) {
    .related-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}
