/* =========================================================================
   Vinaweb – Trang đích Quảng cáo Facebook (pages/quang-cao-facebook.php)
   Nạp SAU google-ads.css (dùng lại toàn bộ lớp ga-*). File này chỉ gồm phần riêng:
   bài quảng cáo minh hoạ ở banner, logo nền tảng, màu Meta ở thẻ thuê tài khoản. Tiền tố fb-.
   ========================================================================= */
/* Banner: dòng logo nền tảng */
.fb-on { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.68); animation: pheroIn 1s var(--ease) .35s both; }
.fb-on span { margin-right: 6px; }
.fb-on i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; }
.fb-on svg { width: 22px; height: 22px; }
.ga-orb svg { width: 32px; height: 32px; }

/* Bài quảng cáo trên bảng tin (minh hoạ) */
.fb-stage { padding-bottom: 152px; }
.fb-post { max-width: 400px; padding: 14px 14px 10px; border-radius: 18px; background: #fff; color: #1c1e21; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 40px 80px -30px rgba(0,0,0,.8); rotate: -1.2deg; }
.fb-post__head { display: flex; align-items: center; gap: 10px; }
.fb-post__av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, #ba131a, #7f070c); }
.fb-post__head p { flex: 1; margin: 0; line-height: 1.3; }
.fb-post__head b { display: block; font-size: 14px; }
.fb-post__head small { font-size: 12px; color: #65676b; }
.fb-post__head i { width: 18px; height: 4px; border-radius: 2px; background: radial-gradient(circle, #8a8d91 1.6px, transparent 2px) 0 0 / 6px 4px; }
.fb-post__text { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; }
.fb-post__img { display: grid; place-items: center; height: 150px; margin: 10px -14px 0; background: linear-gradient(135deg, #dfeafe, #ece5fd 55%, #fde8e9); text-align: center; font-size: 13px; font-weight: 600; line-height: 1.5; color: #5b6b8c; }
.fb-post__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -14px; padding: 10px 14px; background: #f0f2f5; }
.fb-post__cta p { margin: 0; line-height: 1.3; }
.fb-post__cta small { display: block; font-size: 10.5px; letter-spacing: .04em; color: #65676b; }
.fb-post__cta b { font-size: 13.5px; }
.fb-post__cta span { flex: none; padding: 8px 14px; border-radius: 8px; background: #1877f2; color: #fff; font-size: 13px; font-weight: 700; }
.fb-post__react { display: flex; justify-content: space-between; padding-top: 9px; font-size: 12px; color: #65676b; }
.fb-post__react i { font-style: normal; margin-right: -2px; }
.fb-stage .ga-kpi__chart span { background: #dbe7fd; }
.fb-stage .ga-kpi__chart span:nth-last-child(-n+3) { background: #1877f2; }
.fb-stage .ga-kpi__grid div:nth-child(1) b { color: #1877f2; }
.fb-stage .ga-kpi { left: auto; right: 104px; width: min(300px, 74%); }
.fb-stage .ga-orb--1 { left: -22px; top: 120px; }
.fb-stage .ga-orb--2 { right: auto; left: 60%; top: -26px; }
.fb-stage .ga-orb--3 { left: 22%; top: -30px; }

/* Thẻ thuê tài khoản: dải màu Meta thay cho 4 màu Google */
.fads .ga-plan--rent::before { background: linear-gradient(90deg, #0064e0, #0082fb 50%, #a033ff); }
.fads .ga-plan--rent .ga-plan__for { color: #0064e0; }
.fads .ga-plan--rent .ga-plan__ic { color: #0064e0; }
.fads .ga-plan--full .ga-plan__price b { font-size: 22px; }
.fads .ga-plan.is-target { box-shadow: 0 0 0 3px #1877f2, 0 30px 54px -30px rgba(24,119,242,.6); }

/* Hình thức quảng cáo: icon nét theo màu từng loại */
.fb-type__ic { color: var(--c); }
.fb-type__ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Các bước nằm trên nền be, hỏi đáp nền trắng để xen kẽ */
.fads .ga-steps .gcp-step__no { background: var(--red); color: #fff; }

@media (max-width: 1279px) { .fb-stage .ga-kpi { right: 30px; } }
@media (max-width: 1024px) {
  .fb-stage { padding-left: 0; }
  .fb-post { margin-inline: auto; }
  .fb-stage .ga-kpi { right: 0; }
}
@media (max-width: 680px) {
  .fb-post { rotate: 0deg; max-width: none; }
  .fb-stage .ga-orb--1 { left: -8px; top: 150px; }
  .fb-stage .ga-orb--2 { left: auto; right: -6px; top: -20px; }
  .fb-stage .ga-orb--3 { display: grid; left: 40%; top: -24px; }
}
@media (prefers-reduced-motion: reduce) { .fb-on { animation: none; } }
