/* ============================================================
   Împrumut 247 — pages.css  (v2, editorial design)
   Styles for content pages, tools, reviews, guides + nav dropdowns
   ============================================================ */

/* ============ NAV DROPDOWNS ============ */
/* Reset list markup semantic (ul/li) — hiển thị như cũ */
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.nav__bar { display: none; }   /* chỉ hiện trong drawer mobile (mobile.css) */
.nav__list > li { position: relative; }
.nav__dropdown { list-style: none; }
.nav__dropdown li { display: block; }
.nav__dropdown li[role="presentation"] { padding: 0; }
.nav__group { position: relative; }
.nav__toggle {
  background: none;
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav__toggle::after {
  content: '▾';
  font-size: 0.7rem;
  color: var(--accent);
  transition: transform .2s;
}
.nav__group:hover .nav__toggle::after,
.nav__group.open .nav__toggle::after { transform: rotate(180deg); }
.nav__toggle:hover { color: var(--accent); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(22, 101, 52, 0.18);
  padding: 8px;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.nav__group:hover .nav__dropdown,
.nav__group.open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: background .12s, color .12s, padding-left .12s;
}
.nav__dropdown a:hover { background: var(--primary-light); color: var(--primary); padding-left: 18px; }
.nav__dropdown .nav__dd-head {
  display: block;
  padding: 10px 14px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}
.nav__dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 8px; }
/* Link „Vezi toate" — nổi bật, dẫn tới trang hub */
.nav__dropdown a.nav__more {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}
.nav__dropdown a.nav__more:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ============ PAGE HERO ============ */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(132, 204, 22, 0.30), transparent 60%),
    radial-gradient(700px 380px at 0% 120%, rgba(190, 242, 100, 0.14), transparent 55%),
    linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 62%, #15803d 100%);
  color: #fff;
  padding: 42px 0 104px;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.92); text-decoration: none; }
.breadcrumbs a:hover { color: #bef264; }
.breadcrumbs span[aria-current] { color: rgba(255, 255, 255, 0.6); }
.page-hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.9px;
  line-height: 1.13;
  margin-bottom: 18px;
  max-width: 850px;
  text-wrap: balance;
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.page-hero__meta span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ============ ARTICLE — floating card over hero ============ */
.article-wrap {
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(22, 101, 52, 0.04), transparent 60%),
    var(--bg-alt);
  padding: 0 0 84px;
}
.article-wrap .container > :first-child {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.article {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 22px;
  padding: 52px 58px;
  box-shadow: 0 4px 6px rgba(22, 101, 52, 0.04), 0 22px 60px rgba(22, 101, 52, 0.12);
}
.article > p, .article > ul, .article > ol { font-size: 1.03rem; line-height: 1.75; margin-bottom: 20px; color: var(--text); }
.article > ul, .article > ol { padding-left: 26px; }
.article > ul li, .article > ol li { margin-bottom: 9px; }
.article > ul li::marker { color: var(--accent); }
.article > ol li::marker { color: var(--accent-dark); font-weight: 700; }
.article h2 {
  font-size: 1.55rem;
  font-weight: 850;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 52px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  scroll-margin-top: 90px;
}
.article h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #bef264);
}
.article h3 {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 34px 0 12px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  scroll-margin-top: 90px;
}
.article strong { color: var(--primary-dark); }
.article a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(22, 163, 74, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color .15s, color .15s;
}
.article a:hover { color: var(--primary); text-decoration-color: var(--primary); }
.article a.btn { text-decoration: none; color: #fff; }
.article a.btn.btn--white { color: var(--primary); }
/* CTA afiliere din facts-card: text verde închis pe fundal lime (contrast) */
.article a.facts-card__cta,
.article a.facts-card__cta:hover { color: var(--primary-dark); text-decoration: none; }
/* Butoane din tabel: fără subliniere (nu arată ca link text) */
.article a.btn-review { text-decoration: none; }
.article a.btn-review--apply,
.article a.btn-review--apply:hover { color: #fff; }

/* ============ TL;DR (AEO summary) ============ */
.tldr {
  background: linear-gradient(140deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 16px;
  padding: 24px 28px 22px;
  margin: 0 0 34px;
  position: relative;
  box-shadow: inset 4px 0 0 var(--accent);
}
.tldr h2, .tldr strong.tldr__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem !important;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 0 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border: none;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.tldr h2::after { display: none; }
.tldr ul { list-style: none; padding: 0; margin: 0; }
.tldr li {
  padding: 7px 0;
  font-size: 0.98rem;
  line-height: 1.6;
}
.tldr li + li { border-top: 1px dashed rgba(22, 163, 74, 0.25); }
.tldr p { margin: 0; font-size: 0.98rem; line-height: 1.7; }

/* ============ TABLE OF CONTENTS ============ */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 38px;
}
.toc strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.toc strong::before { content: '☰'; color: var(--accent); }
.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  gap: 34px;
  font-size: 0.93rem;
}
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc li::marker { color: var(--accent-dark); font-weight: 800; }
.toc a { text-decoration: none; color: var(--text); font-weight: 600; transition: color .12s; }
.toc a:hover { color: var(--accent-dark); }

/* ============ DATA TABLES ============ */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(22, 101, 52, 0.07);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  min-width: 640px;
  background: #fff;
}
.cmp-table th {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.cmp-table th:first-child { border-top-left-radius: 15px; }
.cmp-table th:last-child { border-top-right-radius: 15px; }
.cmp-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.5;
}
.cmp-table tbody tr { transition: background .12s; }
.cmp-table tbody tr:nth-child(even) { background: #fafcfe; }
.cmp-table tbody tr:hover { background: var(--primary-light); }
.cmp-table td:first-child { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.cmp-table td a { white-space: nowrap; }
.cmp-table .btn { padding: 8px 18px; font-size: 0.82rem; }
.cmp-table .tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3);
  vertical-align: middle;
}
/* Nút CTA „Recenzie" trong bảng so sánh — thay link gạch chân */
.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1.5px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.btn-review:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}
/* Varianta „Aplică" (link de afiliere) — buton verde plin, mai proeminent */
.btn-review--apply {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 3px 10px rgba(101, 163, 13, 0.28);
}
.btn-review--apply:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-dark) 100%);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(101, 163, 13, 0.4);
}
/* Logo + tên IFN trong ô đầu bảng */
.cmp-brand { display: inline-flex; align-items: center; gap: 11px; }
.cmp-brand__logo {
  width: 88px; height: 46px;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 8px;
  flex-shrink: 0;
}
/* Badge chữ cái đầu cho IFN chưa có logo (đồng bộ với dòng có logo) */
.cmp-brand__initial {
  width: 88px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  flex-shrink: 0;
}
/* Logo trong header bảng so sánh X-vs-Y (nền xanh → logo trong ô trắng) */
.th-brand { display: inline-flex; align-items: center; gap: 9px; }
.th-brand__logo {
  width: 80px; height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 5px 7px;
  flex-shrink: 0;
}

/* ============ INLINE CTA BOX ============ */
.cta-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 220px at 92% -30%, rgba(74, 222, 128, 0.35), transparent 60%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 18px;
  padding: 30px 34px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(22, 101, 52, 0.28);
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.cta-box__text { position: relative; }
.cta-box__text h3, .cta-box__text strong {
  color: #fff !important;
  font-size: 1.22rem;
  margin: 0 0 6px !important;
  display: block;
  border: none;
  padding: 0;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.cta-box__text p { margin: 0 !important; color: rgba(255, 255, 255, 0.85) !important; font-size: 0.93rem !important; }
.cta-box .btn { flex-shrink: 0; position: relative; }

/* ============ PROS / CONS ============ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 34px;
}
.pros, .cons {
  border-radius: 16px;
  padding: 24px 24px 20px;
  font-size: 0.95rem;
  border: 1px solid;
  position: relative;
}
.pros {
  background: linear-gradient(160deg, #f0fdf4, #ecfdf5);
  border-color: rgba(132, 204, 22, 0.30);
  box-shadow: inset 0 3px 0 var(--accent);
}
.cons {
  background: linear-gradient(160deg, #fef7f7, #fef2f2);
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow: inset 0 3px 0 #ef4444;
}
.pros strong, .cons strong {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 999px;
  color: #fff;
}
.pros strong { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.cons strong { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { padding: 6px 0; line-height: 1.55; }
.pros li + li { border-top: 1px dashed rgba(22, 163, 74, 0.2); }
.cons li + li { border-top: 1px dashed rgba(220, 38, 38, 0.15); }

/* ============ QUICK FACTS CARD (reviews) ============ */
.facts-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 260px at 95% -40%, rgba(74, 222, 128, 0.28), transparent 60%),
    linear-gradient(140deg, var(--primary-dark), var(--primary) 75%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 28px 30px;
  margin: 0 0 36px;
  box-shadow: 0 18px 44px rgba(22, 101, 52, 0.3);
}
.facts-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.facts-card__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.facts-card__logo {
  width: 160px;
  height: 58px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.08rem;
  color: #fff;
  padding: 0 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.3px;
}
/* Variant có ảnh logo thật: nền trắng, logo chứa gọn */
.facts-card__logo--img {
  background: #fff !important;
  padding: 8px 12px;
}
.facts-card__logo--img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.facts-card__logo--img .facts-card__logo-txt { display: none; }  /* ẩn text khi có ảnh */
.facts-card__logo:not(.facts-card__logo--img) .facts-card__logo-txt { display: inline; }
.facts-card__rating {
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}
.facts-card__rating .stars { color: var(--warning); letter-spacing: 2px; font-size: 1rem; }
.facts-card__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.facts-card__grid div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.facts-card__grid div span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  margin-bottom: 3px;
}
.facts-card__grid div strong { font-size: 1rem; color: #fff; font-weight: 800; }
/* CTA afiliere în facts-card (buton lime pe fundal verde) */
.facts-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-align: center;
  text-decoration: none;
  background: #bef264;
  color: var(--primary-dark);
  border: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(190, 242, 100, 0.35);
  transition: transform .12s, box-shadow .15s, background .15s;
}
.facts-card__cta span { transition: transform .15s; }
.facts-card__cta:hover {
  background: #d9f99d;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(190, 242, 100, 0.45);
}
.facts-card__cta:hover span { transform: translateX(4px); }

/* Butoane duble „Aplică la X / Y" pe paginile de comparație IFN-vs-IFN */
.vs-apply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.vs-apply__btn { justify-content: center; }
@media (max-width: 560px) {
  .vs-apply { grid-template-columns: 1fr; }
}

/* ============ VERDICT BOX ============ */
.verdict {
  background: linear-gradient(140deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 36px 0;
  box-shadow: inset 4px 0 0 var(--warning), 0 8px 24px rgba(245, 158, 11, 0.12);
}
.verdict strong.verdict__title {
  display: block;
  font-size: 1.12rem;
  color: #92400e;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.verdict p { margin: 0 !important; font-size: 0.98rem !important; line-height: 1.7 !important; color: #78350f; }
.verdict p strong { color: #92400e; }

/* ============ HOW-TO STEPS ============ */
.howto { list-style: none; padding: 0 !important; counter-reset: howto; margin: 24px 0 32px; }
.howto li {
  counter-increment: howto;
  position: relative;
  padding: 0 0 26px 60px;
  margin: 0 !important;
  line-height: 1.65;
}
.howto li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}
.howto li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px);
}
.howto li strong { display: block; margin-bottom: 3px; font-size: 1.02rem; }

/* ============ RELATED LINKS ============ */
.related {
  margin: 48px 0 0;
  padding: 26px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.related strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.related strong::before { content: '📖'; }
.related__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.related__grid a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
  transition: all .16s;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.05);
}
.related__grid a::after { content: ' →'; color: var(--accent); }
.related__grid a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.15);
}

/* ============ AUTHOR / E-E-A-T BOX ============ */
.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(140deg, #fff, var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.author-box__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
}
.author-box strong { color: var(--primary-dark); }

/* ============ GUIDE / RESOURCE CARDS ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.gcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #bef264, var(--primary));
  opacity: 0;
  transition: opacity .22s;
}
.gcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(22, 101, 52, 0.15);
  border-color: rgba(22, 163, 74, 0.4);
}
.gcard:hover::before { opacity: 1; }
.gcard__icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: linear-gradient(140deg, var(--primary-light), #eef6ee);
  border-radius: 14px;
}
.gcard h3 { font-size: 1.06rem; font-weight: 800; color: var(--primary-dark); line-height: 1.35; border: none; padding: 0; margin: 0; }
.gcard p { font-size: 0.89rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.gcard span.gcard__more { font-size: 0.86rem; font-weight: 800; color: var(--accent-dark); transition: padding-left .18s; }
.gcard:hover span.gcard__more { padding-left: 4px; }

/* ============ CALCULATOR ============ */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 44px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.calc-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 4px 6px rgba(22, 101, 52, 0.04), 0 18px 44px rgba(22, 101, 52, 0.12);
}
.calc-panel h2 {
  font-size: 1.15rem !important;
  margin: 0 0 22px !important;
  color: var(--primary-dark);
  font-weight: 800;
  border: none;
  padding: 0;
}
.calc-panel h2::after { display: none; }
.calc-results { display: grid; gap: 14px; }
.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  transition: transform .15s;
}
.calc-result span { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.calc-result strong { font-size: 1.25rem; font-weight: 900; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.calc-result--main {
  background: linear-gradient(140deg, #f0fdf4, #dcfce7);
  border-color: rgba(22, 163, 74, 0.3);
  box-shadow: inset 3px 0 0 var(--accent);
}
.calc-result--main strong { color: var(--accent-dark); font-size: 1.65rem; }
.calc-verdict {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text);
}
.calc-verdict--good { background: #f0fdf4; border-color: rgba(22,163,74,0.35); color: #166534; }
.calc-verdict--warn { background: #fffbeb; border-color: rgba(202,138,4,0.35); color: #854d0e; }
.calc-verdict--bad { background: #fef2f2; border-color: rgba(220,38,38,0.35); color: #991b1b; }
.sim-row--best { background: #f0fdf4; }
.sim-row--best td { font-weight: 800; color: #166534; }
.sim-row--best td:first-child::after { content: " ★"; }
.calc-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }
.calc-field { margin-bottom: 22px; }
.calc-field label { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 10px; color: var(--primary-dark); }
.calc-field .row { display: flex; align-items: center; gap: 14px; }
.calc-field input[type="number"] {
  width: 124px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  padding: 11px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.calc-field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.calc-field input[type="range"] { flex: 1; }

#amortWrap { margin-top: 8px; }
.amort-toggle { margin: 8px 0 22px; }

/* ============ CONTACT / ABOUT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0 34px; }
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(22, 101, 52, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
  background: #fff;
}
.contact-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: linear-gradient(140deg, var(--primary-light), #eef6ee);
  border-radius: 16px;
}
.contact-card h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; border: none; padding: 0; }
.contact-card p, .contact-card a { font-size: 0.93rem; line-height: 1.55; }
.contact-card p { color: var(--text-muted); margin-top: 4px; }

/* ============ FOOTER WIDE (6 cols) ============ */
.footer__grid--wide { grid-template-columns: 1.3fr repeat(5, 1fr); gap: 30px; }
.footer__col--brand a { display: inline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .footer__grid--wide { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .facts-card__grid { grid-template-columns: repeat(2, 1fr); }
  .article { padding: 40px 36px; }
}

@media (max-width: 680px) {
  .footer__grid--wide { grid-template-columns: 1fr; }
  .page-hero { padding: 32px 0 88px; }
  .article-wrap .container > :first-child { margin-top: -48px; }
  .article { padding: 30px 20px; border-radius: 18px; }
  .article h2 { font-size: 1.35rem; margin-top: 40px; }
  .tldr { padding: 20px 18px 18px; }
  .toc ol { columns: 1; }
  .toc { padding: 18px 20px; }
  .pros-cons { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; padding: 26px 22px; }
  .facts-card { padding: 22px 20px; }
  .facts-card__head { justify-content: center; text-align: center; }
  .howto li { padding-left: 52px; }
  .howto li::before { width: 36px; height: 36px; border-radius: 10px; }
  .howto li:not(:last-child)::after { left: 17px; }
  .related { padding: 20px 18px; }
  /* Nav mobile được xử lý hoàn toàn trong mobile.css (off-canvas drawer) */
}
