/* Baat — DS-028 · TheLayoutLoft Parts Line — DESI tag
   WhatsApp green bubble + greeting card. All .ba- prefixed. */
.ba-root { position:fixed; z-index:10000; bottom:24px;
  font:400 14px/1.5 ui-sans-serif,system-ui,sans-serif; }
.ba-root.ba-br { right:24px; }
.ba-root.ba-bl { left:24px; }

.ba-bubble {
  position:relative; width:58px; height:58px; border-radius:50%;
  border:none; cursor:pointer;
  background:linear-gradient(160deg,#2BD46B,#1FA855);
  box-shadow:0 6px 22px rgba(31,168,85,.45), 0 2px 6px rgba(0,0,0,.3);
  display:flex; align-items:center; justify-content:center;
  transition:transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.ba-bubble:hover { transform:scale(1.08); }
.ba-bubble.ba-hot { transform:scale(.92); }
.ba-ico { width:30px; height:30px; fill:#FFF; }
.ba-badge { position:absolute; top:2px; right:2px; width:13px; height:13px;
  border-radius:50%; background:#EF4444; border:2.5px solid #090B10; }
.ba-pulse .ba-bubble::after {
  content:''; position:absolute; inset:-5px; border-radius:50%;
  border:2px solid rgba(43,212,107,.5); animation:ba-ping 2.4s ease-out infinite;
}
@keyframes ba-ping { 0%{transform:scale(.9);opacity:.8} 80%,100%{transform:scale(1.35);opacity:0} }

.ba-card {
  position:absolute; bottom:72px; width:290px;
  background:#12151E; border:1px solid rgba(255,255,255,.13);
  border-radius:18px; overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.55);
  opacity:0; transform:translateY(12px) scale(.96);
  transition:opacity .25s cubic-bezier(.34,1.56,.64,1),
             transform .25s cubic-bezier(.34,1.56,.64,1);
  pointer-events:none;
}
.ba-root.ba-br .ba-card { right:0; transform-origin:bottom right; }
.ba-root.ba-bl .ba-card { left:0; transform-origin:bottom left; }
.ba-card.ba-open { opacity:1; transform:none; pointer-events:auto; }

.ba-head { display:flex; align-items:center; gap:11px;
  padding:14px 16px; background:linear-gradient(160deg,#1FA855,#177F42); }
.ba-ava { width:38px; height:38px; border-radius:50%; flex:none;
  background:rgba(255,255,255,.2); color:#FFF;
  display:flex; align-items:center; justify-content:center;
  font:800 16px/1 inherit; }
.ba-who { flex:1; display:flex; flex-direction:column; }
.ba-who b { color:#FFF; font-size:14px; }
.ba-who i { color:rgba(255,255,255,.75); font-style:normal; font-size:11px; }
.ba-who i::before { content:'● '; color:#7CF5A8; font-size:8px; }
.ba-x { border:none; background:none; color:rgba(255,255,255,.8);
  font:700 17px/1 inherit; cursor:pointer; padding:4px; }
.ba-x:hover { color:#FFF; }

.ba-msg { padding:14px 16px 8px; color:#C7CDDC; font-size:13.5px;
  background:radial-gradient(circle at 12px 12px, rgba(255,255,255,.03) 1.5px, transparent 1.5px);
  background-size:14px 14px; }
.ba-replies { display:flex; flex-direction:column; gap:8px; padding:8px 14px 14px; }
.ba-chip {
  display:block; text-align:center; padding:10px 14px; border-radius:12px;
  background:rgba(43,212,107,.12); color:#2BD46B; text-decoration:none;
  border:1px solid rgba(43,212,107,.35); font:700 13px/1 inherit;
  transition:background .15s, transform .15s;
}
.ba-chip:hover { background:rgba(43,212,107,.22); transform:translateY(-1px); }

@media (prefers-reduced-motion:reduce) {
  .ba-pulse .ba-bubble::after { animation:none; display:none; }
  .ba-card { transition:none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
