/* ============================================================
   Pi — linh vật PNE
   Mức 1: ảnh tĩnh tại điểm chạm (.pi-inline-*, .pi-announce-img)
   Mức 2: nút nổi góc phải + panel chào (.pi-fab, .pi-panel)
   Token: dùng biến trong home-pne.css
   ============================================================ */

/* ===== MỨC 1 — Pi tĩnh ===== */
.pi-inline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 640px;
  margin: 16px auto 0;
  padding: 14px 18px;
  background: #FFF8F1;
  border: 1px solid #F5C8CA;
  border-radius: var(--r-m);
  box-shadow: var(--sh-xs);
  text-align: left;
}
.pi-inline-top {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pi-inline-img {
  flex: none;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.08));
}
.pi-inline-bubble {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}
.pi-inline-top .pi-inline-bubble {
  max-width: 480px;
}

.pi-announce-img {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.08));
}

/* ===== 404 page ===== */
.err-404-wrap {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-soft);
}
.err-404-card {
  max-width: 540px;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-s);
  border-radius: var(--r-l);
  padding: 40px 28px;
  box-shadow: var(--sh-s);
}
.err-404-num {
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  letter-spacing: -.04em;
  margin-bottom: 4px;
}
.err-404-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ===== MỨC 2 — Pi nút nổi + panel ===== */
.pi-fab-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  font-family: var(--ff);
}
.pi-call-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1000;
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 18px rgba(209,32,38,.4), 0 2px 6px rgba(0,0,0,.15);
  text-decoration: none;
}
.pi-call-fab:hover { background: var(--red-deep); color: #fff; }

/* Nút Pi tròn 64px */
.pi-fab {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.10);
  cursor: pointer;
  padding: 0;
  display: block;
  overflow: visible;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pi-fab img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}
.pi-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22), 0 3px 8px rgba(0,0,0,.12); }
.pi-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.pi-fab-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

/* Breathing animation (mức 2) */
@media (prefers-reduced-motion: no-preference) {
  .pi-fab { animation: pi-breathe 3.5s ease-in-out infinite; }
  .pi-fab.pi-fab-bounce { animation: pi-bounce .6s ease-out 1; }
}
@keyframes pi-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes pi-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(-3px); }
}

/* Panel */
.pi-panel {
  position: fixed;
  right: 16px;
  bottom: 92px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: #FFF8F1;
  border: 1px solid #F0DDC8;
  border-radius: var(--r-l);
  box-shadow: 0 20px 50px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
}
.pi-panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, #FFF8F1 0%, #FFEED8 100%);
  border-bottom: 1px solid #F0DDC8;
  position: relative;
}
.pi-panel-pose {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  display: block;
}
.pi-panel-pose img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .pi-panel-pose.pi-wave img { animation: pi-wave .6s ease-in-out 2; transform-origin: 50% 80%; }
}
@keyframes pi-wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}
.pi-panel-bubble {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  border: 1px solid var(--border-s);
  position: relative;
  word-break: break-word;
}
.pi-panel-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid #fff;
}
.pi-panel-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border-s);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  padding: 0;
}
.pi-panel-close:hover { color: var(--red); border-color: var(--red); }

.pi-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 12px;
}

/* Từ hôm nay */
.pi-word {
  background: linear-gradient(120deg, #FFF6D6, #FFEB99 70%);
  border: 1px solid #FFDF55;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.pi-word-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5F4800;
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 99px;
  margin-bottom: 6px;
}
.pi-word-de {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.pi-word-vi {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}
.pi-word-ex {
  font-size: 12.5px;
  color: var(--text);
  margin-top: 6px;
  font-style: italic;
}
.pi-word-ex-vi {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* FAQ accordion */
.pi-faq-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.pi-faq-item {
  border: 1px solid var(--border-s);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}
.pi-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.pi-faq-q i { margin-left: auto; color: var(--text-3); transition: transform .2s; }
.pi-faq-q[aria-expanded="true"] i { transform: rotate(180deg); color: var(--red); }
.pi-faq-a {
  padding: 0 12px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.pi-faq-a a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
}

/* 4 actions */
.pi-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.pi-actions a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-s);
  background: #fff;
  color: var(--text);
  transition: .15s;
}
.pi-actions a:hover { transform: translateY(-1px); box-shadow: var(--sh-xs); }
.pi-actions a i { font-size: 16px; }
.pi-actions .pi-act-zalo { background: #0068FF; color: #fff; border-color: #0068FF; }
.pi-actions .pi-act-zalo:hover { background: #0056d6; color: #fff; }
.pi-actions .pi-act-call { background: var(--red); color: #fff; border-color: var(--red); }
.pi-actions .pi-act-call:hover { background: var(--red-deep); color: #fff; }

.pi-panel-foot {
  padding: 8px 16px 12px;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  border-top: 1px solid var(--border-s);
  background: #fff;
}

/* ============================================================
   MỨC 3 HYBRID — Panel 2 màn (Nhà + Trò chuyện) + Pi Buddy ngoài
   ============================================================ */

/* PANEL chung */
.pi-panel-v3 {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 48px);
  background: #FFF8F1;
  border: 1px solid #F0DDC8;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
}

/* PI BUDDY — đứng ngoài panel, sát mép trái-dưới panel; desktop only */
.pi-buddy {
  position: fixed;
  right: 376px;
  bottom: 12px;
  width: 180px;
  height: 180px;
  pointer-events: none;
  z-index: 1000;
}
.pi-buddy img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 14px 18px rgba(196,16,26,.22));
  transition: opacity .25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .pi-buddy.pi-buddy-bob img { animation: pi-buddy-bob .7s ease-out 1; }
}
@keyframes pi-buddy-bob {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-8px); }
  70% { transform: translateY(-3px); }
}
@media (max-width: 991.98px) {
  .pi-buddy { display: none; } /* mobile: dùng Pi nhỏ trên header thay */
}

/* HEADER panel */
.pi-v3-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #FFF8F1 0%, #FFEED8 100%);
  border-bottom: 1px solid #F0DDC8;
}
.pi-v3-head-mob {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  display: none;
}
.pi-v3-head-mob img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991.98px) {
  .pi-v3-head-mob { display: block; }
}

.pi-v3-head-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pi-v3-head-title b { display: block; font-size: 15px; color: var(--text); }
.pi-v3-head-title span { font-size: 12px; color: var(--text-2); display: block; }
.pi-online-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%;
  margin-left: 4px; vertical-align: 1px;
}
.pi-v3-back {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border-s);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
  padding: 0; font-size: 16px;
}
.pi-v3-back:hover { color: var(--red); border-color: var(--red); }
.pi-v3-close {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border-s);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
  padding: 0; font-size: 16px;
}
.pi-v3-close:hover { color: var(--red); border-color: var(--red); }

/* BODY chung */
.pi-v3-body { flex: 1; overflow-y: auto; padding: 14px; }

/* ===== MÀN NHÀ ===== */
.pi-home { display: flex; flex-direction: column; gap: 14px; }
.pi-home-greet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pi-home-bubble {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-s);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.pi-home-bubble b { color: var(--red); font-weight: 700; }
.pi-home-chatter {
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-s);
  line-height: 1.5;
}

/* Thẻ vàng "Từ tiếng Đức hôm nay" đầy đủ */
.pi-home-word {
  background: linear-gradient(120deg, #FFF6D6, #FFEB99 70%);
  border: 1px solid #FFDF55;
  border-radius: 14px;
  padding: 12px 14px;
}
.pi-home-word-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5F4800;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.pi-home-word-de {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.pi-home-word-vi {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.pi-home-word-ex {
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
  font-style: italic;
}
.pi-home-word-ex-vi {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* Lưới 6 chip menu */
.pi-home-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pi-home-chips .pi-chip {
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  font-size: 13px;
}
@media (max-width: 380px) {
  .pi-home-chips { grid-template-columns: 1fr; }
}

/* ===== MÀN TRÒ CHUYỆN ===== */
.pi-chat-screen {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.pi-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

/* Bubble 2 chiều */
.pi-msg { display: flex; gap: 8px; align-items: flex-end; }
.pi-msg.pi-from-bot { justify-content: flex-start; }
.pi-msg.pi-from-user { justify-content: flex-end; }
.pi-msg-avatar {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.pi-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pi-bubble {
  max-width: 78%;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
  border-radius: 16px;
}
.pi-from-bot .pi-bubble {
  background: #fff;
  border: 1px solid var(--border-s);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.pi-from-user .pi-bubble {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.pi-bubble b { color: var(--red); font-weight: 700; }
.pi-from-user .pi-bubble b { color: #fff; text-decoration: underline; }
.pi-bubble i { color: var(--text-2); font-style: italic; }
.pi-from-user .pi-bubble i { color: rgba(255,255,255,.85); }
.pi-mini {
  margin-top: 6px;
  padding: 8px 10px;
  background: #FFF8F1;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.pi-from-user .pi-mini { background: rgba(255,255,255,.15); color: #fff; border-left-color: #fff; }

/* Typing dots */
.pi-typing { display: inline-flex; gap: 4px; padding: 12px 14px; align-items: center; }
.pi-typing span {
  width: 7px; height: 7px;
  background: var(--text-3);
  border-radius: 50%;
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .pi-typing span { animation: pi-typing-bounce 1.2s infinite ease-in-out; }
  .pi-typing span:nth-child(2) { animation-delay: .15s; }
  .pi-typing span:nth-child(3) { animation-delay: .3s; }
}
@keyframes pi-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Quick-reply chips */
.pi-chat-chips {
  padding: 10px 14px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border-s);
  background: #FFF8F1;
}
.pi-chip {
  background: #fff;
  border: 1px solid var(--border-s);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: .15s;
  font-family: var(--ff);
}
.pi-chip:hover { background: var(--red-light); border-color: var(--red-border); color: var(--red-deep); }
.pi-chip-accent { background: var(--red); border-color: var(--red); color: #fff; }
.pi-chip-accent:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

/* 4 hành động ghim footer — chung cả 2 màn */
.pi-v3-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--border-s);
  background: #fff;
}
.pi-v3-foot a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-s);
  transition: .15s;
}
.pi-v3-foot a:hover { transform: translateY(-1px); background: #FFF8F1; }
.pi-v3-foot a i { font-size: 18px; }
.pi-foot-zalo i { color: #0068FF; }
.pi-foot-call i { color: var(--red); }
.pi-foot-test i { color: var(--green); }
.pi-foot-cal i { color: var(--amber); }

@media (max-width: 767.98px) {
  .pi-panel-v3 {
    right: 0; left: 0; bottom: 0;
    width: 100%; max-width: 100%;
    height: 90vh; max-height: 90vh;
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 767.98px) {
  .pi-call-fab { display: flex; }
  .pi-fab-wrap { right: 12px; bottom: 12px; }
  .pi-fab { width: 56px; height: 56px; }
  .pi-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 85vh;
  }
}

/* ============================================================
   PNE CONTACT FAB — nút Messenger nổi khi Pi TẮT
   ============================================================
   Zalo dùng widget OA SDK chính thức (sp.zalo.me/plugins/sdk.js) tự render
   ở góc phải-dưới — không quản qua class này nữa. Container .pne-contact-fab
   chỉ chứa nút Messenger. Khi có cả Zalo widget thì .pne-contact-fab--has-zalo
   đẩy Messenger lên trên (bottom 120px) để 2 cái không đè.
   Brand: nền trắng + viền nhạt + icon đỏ (giống .pi-fab), hover lật sang nền
   đỏ + icon trắng. KHÔNG dùng nền xanh Messenger mảng lớn (brand-tokens:
   xanh chỉ là UI state, không trang trí). */
.pne-contact-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--ff);
}
.pne-contact-fab--has-zalo {
  /* Tránh đè widget Zalo (~70px button + 24px bottom margin = top ~94px) */
  bottom: 120px;
}
/* #61 (desktop): canh widget Zalo THẲNG CỘT với .pne-contact-fab (right:16) — đè inline
   right:52px do SDK Zalo set. Mép phải khớp Messenger. Giữ bottom SDK (52px) → Zalo xếp DƯỚI
   cụm phone/Messenger (has-zalo bottom:120), cách ~8px. Mobile ≤900 override right→12 (rule dưới). */
.zalo-chat-widget { right: 16px !important; }
.pne-contact-fab__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .10);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.pne-contact-fab__btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(209, 32, 38, .35), 0 3px 8px rgba(0, 0, 0, .12);
}
.pne-contact-fab__btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ----- Messenger brand override -----
   Logo Messenger là BONG BÓNG có đuôi (nền trong suốt) — KHÔNG phải hình
   tròn. Bỏ mọi ép-hình-tròn của parent .pne-contact-fab__btn (border-radius
   50% + border + box-shadow) để bong bóng "thả tự do". Bóng đổ dùng
   filter:drop-shadow trên IMG nên ôm đúng silhouette, không sinh quầng. */
.pne-contact-fab__messenger {
  background: transparent;
  border: 0;
  border-radius: 0;        /* override parent .pne-contact-fab__btn 50% */
  padding: 0;
  overflow: visible;
  box-shadow: none;        /* parent shadow tắt — bóng do drop-shadow trên img */
  width: 60px;             /* cân với widget Zalo bên cạnh */
  height: 60px;
}
.pne-contact-fab__messenger img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;     /* hiện trọn bong bóng, không crop tròn */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .22));
  transition: filter .2s ease;
}
.pne-contact-fab__messenger:hover {
  background: transparent;
  box-shadow: none;
}
.pne-contact-fab__messenger:hover img {
  /* Hover: bóng đậm hơn + ngả xanh Messenger nhẹ */
  filter: drop-shadow(0 6px 12px rgba(0, 132, 255, .35)) drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
}

@media (prefers-reduced-motion: reduce) {
  .pne-contact-fab__btn { transition: none; }
  .pne-contact-fab__btn:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════
   Đợt 6B(3+7) — Nút Gọi/gọi lại nổi (trên cùng cụm FAB) + popup "Yêu cầu gọi lại"
   ══════════════════════════════════════════════════════════ */
.pne-fab-phone {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 25px;
  box-shadow: 0 8px 22px rgba(209, 32, 38, .35), 0 2px 6px rgba(0, 0, 0, .15);
  animation: pne-fab-pulse 1.9s infinite; transition: transform .2s ease, background .2s ease;
}
.pne-fab-phone:hover { background: var(--red-deep); transform: translateY(-2px); }
.pne-fab-phone:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@keyframes pne-fab-pulse {
  0%   { box-shadow: 0 8px 22px rgba(209,32,38,.35), 0 0 0 0 rgba(209,32,38,.5); }
  70%  { box-shadow: 0 8px 22px rgba(209,32,38,.35), 0 0 0 12px rgba(209,32,38,0); }
  100% { box-shadow: 0 8px 22px rgba(209,32,38,.35), 0 0 0 0 rgba(209,32,38,0); }
}

.pne-call-ov { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pne-call-ov[hidden] { display: none; }
.pne-call-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.pne-call-box { position: relative; z-index: 1; width: 100%; max-width: 380px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 26px 24px 24px; }
.pne-call-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.pne-call-box h3 { font-size: 17px; font-weight: 800; text-align: center; line-height: 1.35; padding: 0 6px; }
.pne-call-lb { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin: 16px 0 6px; }
.pne-call-box input[type="tel"], .pne-call-box select { width: 100%; border: 1px solid var(--border-s); border-radius: 10px; padding: 12px 13px; font: 400 16px var(--ff); color: var(--text); background: #fff; }   /* #115: 14→16, iOS không zoom */
.pne-call-box input:focus, .pne-call-box select:focus { outline: none; border-color: var(--red); }
.pne-call-req { width: 100%; margin-top: 16px; background: var(--red); color: #fff; font: 800 15px var(--ff); border: none; border-radius: 11px; padding: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
.pne-call-req:hover { background: var(--red-deep); }
.pne-call-or { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 16px; }
.pne-call-hot { display: block; text-align: center; color: var(--red); font: 900 22px var(--ff); letter-spacing: .5px; margin: 2px 0 12px; text-decoration: none; }
.pne-call-btn { width: 100%; background: #fff; color: var(--red); font: 800 15px var(--ff); border: 1.5px solid var(--red); border-radius: 11px; padding: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s; }
.pne-call-btn:hover { background: var(--red-light); }

/* ══════════════════════════════════════════════════════════════════
   P1(A+E) — MOBILE: cụm nút nổi (FAB) ĐẨY LÊN TRÊN thanh CTA dán đáy, thu nhỏ,
   để KHÔNG đè nút thẻ LKG / pill lọc / thanh "Đăng ký tư vấn". Thanh CTA mobile
   (.mobile-cta) hiện ở ≤900px (P1-3), cao ~64px + safe-area → FAB bottom ≥ 80px.
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* #116: TRÊN MOBILE cụm nút liên hệ đã GỘP vào thanh đáy (speed-dial trong mobile-cta) →
     ẨN HẲN cụm nổi bên phải (.pne-contact-fab: gọi + Messenger) — nó nay sống trong speed-dial. */
  .pne-contact-fab,
  .pne-contact-fab--has-zalo { display: none !important; }

  /* #116: ẨN nút tròn Zalo mặc định của SDK (vô hình + không bắt chạm) NHƯNG GIỮ vị trí góc phải-dưới
     do SDK đặt — để popup chat (SDK định vị theo nút) vẫn hiện ĐÚNG khi icon Zalo trong speed-dial kích hoạt.
     KHÔNG dùng display:none (SDK cần element sống + tại chỗ). */
  .zalo-chat-widget { opacity: 0 !important; pointer-events: none !important; }

  /* Pi mascot fab (khi Pi bật) — nâng lên trên thanh CTA đáy. Ở GÓC PHẢI (speed-dial ở góc TRÁI → không đè). */
  .pi-fab-wrap { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .pi-fab { width: 48px; height: 48px; }
}
