/* ==================================================================
   REVOCH public V100 — WHATSAPP CRM PAGE UPGRADE
   1. Typing indicator plays before the reply bubble on reveal
   2. WhatsApp-style blue double-tick pop on the agent reply
   3. Business inbox items slide in staggered; active item glows
   4. Chat action chips (Template / Link lead / Set follow-up /
      Create quote) light up sequentially and lift on hover
   Progressive: reduced motion / Motion pause show the static chat.
   ================================================================== */

/* ---------- 1. typing indicator ---------- */
.v100-typing { margin-left: auto; display: flex; width: max-content; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 15px 15px 4px 15px; background: #fff; border: 1px solid #dbe4f3; box-shadow: 0 6px 16px rgba(30,41,90,.08); margin: 10px 6px 6px auto; opacity: 0; transform: translateY(8px) scale(.92); transition: opacity .35s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.v100-typing.is-on { opacity: 1; transform: none; }
.v100-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8c7; animation: v100-typing-bounce 1.1s ease-in-out infinite; }
.v100-typing i:nth-child(2) { animation-delay: .15s; }
.v100-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes v100-typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- 2. blue double tick ---------- */
.v100-chat-scope .v68-bubble .v100-tick { color: #53bdeb; font-weight: 900; display: inline-block; animation: v100-tick-pop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: 1.9s; }
@keyframes v100-tick-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 3. inbox stagger + active glow ---------- */
.v100-chat-scope .v68-chat-list article { opacity: 0; transform: translateX(-18px); transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--v100i, 0) * 110ms); }
.v100-chat-scope.v100-in .v68-chat-list article { opacity: 1; transform: none; }
.v100-chat-scope .v68-chat-list article.active { border-color: rgba(99,102,241,.4); box-shadow: 0 10px 26px rgba(99,102,241,.14); }
.v100-chat-scope .v68-chat-list article small { transition: color .3s ease; }
.v100-chat-scope.v100-in .v68-chat-list article:hover small { color: #4f46e5; }

/* ---------- 4. action chips ---------- */
.v100-chat-scope .v68-chat-actions span { opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .4s ease, transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease; transition-delay: calc(1.6s + var(--v100c, 0) * 130ms); cursor: pointer; }
.v100-chat-scope.v100-in .v68-chat-actions span { opacity: 1; transform: none; }
.v100-chat-scope .v68-chat-actions span:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(99,102,241,.22); border-color: rgba(99,102,241,.45); }

/* ---------- guards ---------- */
@media (prefers-reduced-motion: reduce) {
  .v100-typing { display: none !important; }
  .v100-chat-scope .v68-chat-list article, .v100-chat-scope .v68-chat-actions span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .v100-chat-scope .v68-bubble .v100-tick { animation: none !important; }
}
.v77-paused .v100-chat-scope .v68-chat-list article, .v77-paused .v100-chat-scope .v68-chat-actions span { opacity: 1 !important; transform: none !important; transition: none !important; }
.v77-paused .v100-typing { display: none !important; }
