/* /features/engage — 11 section, mockup bằng HTML. Tiền tố .eng- (chỉ nạp ở trang này). */

/* ---- 1. hero ---- */
.eng-hero .pp-hero-in { padding-top: 60px; }
.eng-stage { position: relative; height: 404px; max-width: 1240px; margin: 4px auto 0; }
.eng-mascot { position: absolute; left: 50%; bottom: -14px; height: 360px; width: auto; transform: translateX(-50%);
  z-index: 3; filter: drop-shadow(0 26px 46px rgba(0,0,0,.55)); }
.eng-halo { position: absolute; left: 50%; bottom: -90px; width: 620px; height: 620px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.20), transparent 62%); }
.eng-bubbles { position: absolute; inset: 0; z-index: 4; }
.eng-bub { position: absolute; display: flex; align-items: center; gap: 9px; max-width: 250px; padding: 9px 14px 9px 9px;
  border-radius: 14px; font-size: 12.5px; line-height: 1.35; color: #ece9e2; background: rgba(28,27,22,.9);
  border: 1px solid #3a362c; box-shadow: 0 14px 30px rgba(0,0,0,.35); backdrop-filter: blur(6px);
  animation: eng-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.eng-bub span { flex: 1; }
.eng-bub-dm { border-color: rgba(45,212,191,.45); }
.eng-bub-review { background: rgba(31,24,14,.92); border-color: rgba(200,247,81,.35); }
.eng-bub-mention { border-color: rgba(255,122,26,.4); }
.eng-bub-soon { opacity: .8; border-style: dashed; }
.eng-bub:nth-child(1) { left: 4%; top: 14%; }
.eng-bub:nth-child(2) { left: 0%; top: 52%; }
.eng-bub:nth-child(3) { left: 13%; top: 80%; }
.eng-bub:nth-child(4) { right: 3%; top: 10%; }
.eng-bub:nth-child(5) { right: 0%; top: 48%; }
.eng-bub:nth-child(6) { right: 12%; top: 78%; }
@keyframes eng-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---- 2. streams ---- */
.eng-streams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 2; }
.eng-stream { display: grid; align-content: start; gap: 8px; padding: 22px; min-height: 196px; }
.eng-sicons { display: flex; gap: 6px; margin-bottom: 6px; }
.eng-stream h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.eng-soon { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; color: #141311; background: var(--pink); }
.eng-stream p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--pp-mute); }
.eng-say { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 11px; border-radius: 10px;
  font-size: 12px; color: var(--pp-ink); background: var(--pp-card); border: 1px solid var(--pp-line); }
.eng-stream-soon { border-style: dashed; }
.eng-foot { display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 760px; margin: 26px auto 0;
  font-size: 12.5px; line-height: 1.6; color: var(--pp-mute); }
.eng-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; margin-top: 7px; }

/* ---- 3. mission control ---- */
.eng-mission { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .85fr; gap: 28px; align-items: start; }
.eng-panel { border-radius: 18px; padding: 16px; background: #15140f; border: 1px solid #34312a; color: #f5f5f6;
  box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.eng-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid #2c2921; }
.eng-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12px;
  color: #cfcabb; background: #201e17; border: 1px solid #36332a; }
.eng-tab b { font-size: 10px; font-weight: 700; color: #8f8b80; }
.eng-tab.on { border-color: rgba(45,212,191,.6); background: rgba(45,212,191,.14); color: #d7fff9; }
.eng-tab.on b { color: #9bf3e6; }
.eng-list { display: grid; gap: 7px; margin-top: 12px; }
.eng-thread { display: grid; grid-template-columns: 24px 1fr 1.15fr 22px; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 11px; font-size: 12.5px; color: #e9e9ee; background: #1b1a14; }
.eng-thread[hidden] { display: none; }
.eng-who { display: grid; font-weight: 600; }
.eng-who small { font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7f7b70; }
.eng-msg { color: #b9b4a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-thread .eng-dot { background: var(--teal); }
.eng-thread[data-st*="assigned"] .eng-dot { background: var(--orange); }
.eng-thread[data-st*="resolved"] .eng-dot { background: var(--pink); }
.eng-thread[data-st*="archived"] .eng-dot { background: #6f6b60; }
.eng-empty { padding: 26px; text-align: center; font-size: 12.5px; color: #8f8b80; }
.eng-empty[hidden] { display: none; }
.eng-facts { display: grid; gap: 12px; }
.eng-fact { padding: 20px; }
.eng-fact h3 { font-size: 15.5px; }
.eng-side-mascot.eng-mission-mascot, .pp-side-mascot.eng-mission-mascot { right: 24px; top: -18px; height: 116px; width: auto;
  transform: rotate(7deg); }

/* ---- 4. reply in your voice ---- */
.eng-ba-grid { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 12px; align-items: center; }
.eng-ba { position: relative; border-radius: 16px; padding: 14px; background: #15140f; border: 1px solid #34312a;
  color: #f5f5f6; box-shadow: 0 26px 60px rgba(0,0,0,.35); }
.eng-after { border-color: rgba(45,212,191,.45); }
.eng-ba-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px;
  border-bottom: 1px solid #2c2921; }
.eng-ba-h b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #ffb36b; }
.eng-ba-h span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #a9a9b3; }
.eng-chat { display: grid; gap: 9px; padding: 20px 0; min-height: 210px; align-content: start; }
.eng-them { margin: 0; padding: 9px 12px; border-radius: 12px 12px 12px 4px; font-size: 12.5px; line-height: 1.45;
  color: #e9e9ee; background: #23221b; width: fit-content; max-width: 90%; }
.eng-draft { position: relative; margin: 0; padding: 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45;
  background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.4); }
.eng-draft em { display: block; margin-bottom: 5px; font-style: normal; font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #7ee6d8; }
.eng-inbox-line { padding: 10px 12px; border-radius: 10px; font-size: 12px; color: #6f6b60; background: #1b1a14;
  border: 1px dashed #3a362c; }
.eng-suggest { position: absolute; right: 26px; bottom: 52px; padding: 5px 10px; border-radius: 8px; font-size: 11px;
  font-weight: 600; color: #141311; background: var(--pink); }
.eng-tones { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.eng-tone { padding: 4px 9px; border-radius: 999px; font-size: 10.5px; color: #cfcabb; border: 1px solid #3a362c; }
.eng-tone.on { color: #d7fff9; border-color: rgba(45,212,191,.6); background: rgba(45,212,191,.14); }
.eng-ba-act { margin-left: auto; padding: 4px 10px; border-radius: 8px; font-size: 11px; border: 1px solid #3a362c; }
.eng-ba-act.eng-send { margin-left: 0; color: #141311; background: var(--orange); border-color: var(--orange); font-weight: 700; }
.eng-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #141311;
  background: var(--pink); }
.eng-ba-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; align-items: start; }
.eng-ba-notes .pp-bul { margin-top: 0; }
.eng-short { display: grid; gap: 4px; padding: 18px 20px; }
.eng-short b { font-size: 13px; }
.eng-short p { margin: 0; font-size: 13px; color: var(--pp-ink); }
.eng-short small { font-size: 11.5px; color: var(--pp-mute); }

.eng-fresh { animation: eng-fresh .6s var(--ease); }
@keyframes eng-fresh { 0% { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(200,247,81,.18); } 100% { } }
.eng-step-new { border-color: rgba(200,247,81,.5); }
.eng-tone { cursor: pointer; }
.eng-suggest { cursor: pointer; }
.eng-suggest:hover { background: #e2ff9c; }
.eng-add { cursor: pointer; }

/* ---- 5. snippets ---- */
.eng-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.eng-compare .pp-card { padding: 16px; }
.eng-compare b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.eng-free, .eng-cost { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.eng-free { color: #0d2d22; background: var(--pink); }
.eng-cost { color: #ffcda6; background: rgba(255,122,26,.16); }
.eng-note { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--pp-mute); }
.eng-snips { display: grid; gap: 10px; }
.eng-snip-h { display: flex; align-items: center; justify-content: space-between; }
.eng-snip-h b { font-size: 14px; }
.eng-snip-new { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 7px; font-size: 11px;
  color: #141311; background: var(--orange); font-weight: 600; }
.eng-snip-new .ic { width: 12px; height: 12px; }
.eng-search { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 9px; font-size: 11.5px;
  color: #6f6b60; background: #1b1a14; border: 1px solid #2c2921; }
.eng-search .ic { width: 13px; height: 13px; }
.eng-snip-list { display: grid; gap: 7px; }
.eng-snip { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; text-align: left; background: #1b1a14;
  border: 1px solid #2c2921; }
.eng-snip:hover { border-color: #4a4536; }
.eng-snip.on { border-color: rgba(45,212,191,.6); background: rgba(45,212,191,.1); }
.eng-snip b { font-size: 12.5px; color: #e9e9ee; }
.eng-snip span { font-size: 11.5px; line-height: 1.45; color: #a9a9b3; }
.eng-toast { padding: 8px 12px; border-radius: 999px; text-align: center; font-size: 11.5px; font-weight: 600;
  color: #cfcabb; background: #2a2820; }
.eng-toast.show { color: #0d2d22; background: #34d399; }

/* ---- 6. assign ---- */
.eng-assign { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.eng-tick { display: grid; align-content: start; gap: 11px; min-height: 330px; padding: 22px; border-radius: 16px;
  background: var(--pp-card); border: 1px solid var(--pp-line); }
.eng-tick.done { border-color: rgba(200,247,81,.4); }
.eng-tick-h { display: flex; align-items: center; gap: 9px; }
.eng-tick-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font: 700 11px/1 ui-monospace, monospace;
  color: #141311; background: var(--orange); }
.eng-tick-h b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--pp-mute); }
.eng-tick-post { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--pp-ink); }
.eng-tick-msg { margin: 0; font-size: 12.5px; color: var(--pp-mute); }
.eng-note-in { padding: 10px 12px; border-radius: 10px; background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.35); }
.eng-note-in b { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #ffb020; }
.eng-note-in span { margin-left: 6px; font-size: 10.5px; color: var(--pp-mute); }
.eng-note-in p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--pp-ink); }
.eng-mention { font-style: normal; padding: 0 4px; border-radius: 4px; background: rgba(255,122,26,.25); color: #ffcda6; }
.eng-reply { margin: 0; padding: 10px 12px; border-radius: 10px 10px 4px 10px; font-size: 12px; line-height: 1.5;
  background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.35); color: var(--pp-ink); }
.eng-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; position: relative; z-index: 2; }
.eng-trio h3 { font-size: 15px; }

/* ---- 7. labels ---- */
.eng-labels { display: grid; gap: 12px; }
.eng-lgroup small { display: block; margin-bottom: 7px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #8f8b80; }
.eng-lgroup > div { display: flex; flex-wrap: wrap; gap: 7px; }
.eng-label { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; color: #e9e9ee; background: #26241d; border: 1px solid #36332a; }
.eng-label:nth-child(2n) { border-color: rgba(45,212,191,.35); }
.eng-label:nth-child(3n) { border-color: rgba(255,122,26,.35); }

/* ---- 8. autopilot ---- */
.eng-auto { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: stretch;
  max-width: 1020px; margin: 0 auto; }
.eng-builder { display: grid; gap: 13px; padding: 22px; border-radius: 18px; background: #15140f; border: 1px solid #34312a;
  color: #f5f5f6; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.eng-builder-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px;
  border-bottom: 1px solid #2c2921; }
.eng-builder-h b { font-size: 13.5px; }
.eng-live { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #0d2d22; background: #34d399; }
.eng-step { display: grid; grid-template-columns: 62px 24px 1fr auto; align-items: center; gap: 10px; padding: 9px 11px;
  border-radius: 11px; background: #1b1a14; border: 1px solid #2c2921; }
.eng-step-k { font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #8f8b80; }
.eng-step b { display: block; font-size: 12.5px; }
.eng-step small { font-size: 11px; color: #8f8b80; }
.eng-change { font-size: 10.5px; color: #ffb36b; }
.eng-spark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #141311; background: var(--pink); }
.eng-spark .ic { width: 13px; height: 13px; }
.eng-builder-f { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.eng-add { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #ffb36b; }
.eng-add .ic { width: 12px; height: 12px; }
.eng-builder-f small { font-size: 10.5px; color: #8f8b80; }
.eng-exs { display: grid; gap: 8px; align-content: space-between; }
.eng-exs > small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pp-mute); }
.eng-ex { padding: 12px 14px; border-radius: 10px; text-align: left; font-size: 12px; color: var(--pp-ink);
  background: var(--pp-card); border: 1px solid var(--pp-line); }
.eng-ex:hover { border-color: rgba(255,122,26,.5); }
.eng-warn { position: relative; z-index: 2; display: flex; gap: 10px; align-items: flex-start; max-width: 1020px; margin: 22px auto 0;
  padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; color: var(--pp-mute);
  border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.08); }
.eng-warn .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--teal); flex: 0 0 auto; }

/* ---- 9. pre-flight ---- */
.eng-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 2; }
.eng-check { padding: 22px; }
.eng-check-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.eng-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font: 700 12px/1 ui-monospace, monospace;
  color: #141311; background: var(--orange); }
.eng-check-ic { display: flex; gap: 5px; }
.eng-check h3 { font-size: 16.5px; }
.eng-check p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--pp-mute); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .eng-mission { grid-template-columns: 1fr; }
  .pp-side-mascot.eng-mission-mascot { display: none; }
  .eng-streams { grid-template-columns: 1fr 1fr; }
  .eng-auto { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .eng-ba-grid { grid-template-columns: 1fr; }
  .eng-arrow { margin: 0 auto; transform: rotate(90deg); }
  .eng-ba-foot, .eng-assign, .eng-trio, .eng-checks, .eng-compare { grid-template-columns: 1fr; }
  .eng-tick { min-height: 0; }
  .eng-stage { height: 400px; }
  .eng-mascot { height: 300px; }
  .eng-bub { max-width: 190px; font-size: 11.5px; }
  .eng-bub:nth-child(3), .eng-bub:nth-child(6) { display: none; }
}
@media (max-width: 720px) {
  .eng-streams { grid-template-columns: 1fr; }
  .eng-thread { grid-template-columns: 24px 1fr 22px; }
  .eng-msg { display: none; }
  .eng-stage { height: 360px; }
  .eng-bub:nth-child(1) { left: 0; top: 4%; }
  .eng-bub:nth-child(2) { left: 0; top: 40%; }
  .eng-bub:nth-child(4) { right: 0; top: 4%; }
  .eng-bub:nth-child(5) { right: 0; top: 40%; }
  .eng-hero .pp-hero-in { padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .eng-bub { animation: none; } }
