/* V45 — exact iMac screen snap + Envia .AI-style Communication Hub skin for .COM */
.module-demo-section{
  margin:clamp(28px,4vw,56px) auto !important;
}
.module-demo-heading{
  margin-bottom:clamp(16px,2.8vw,28px) !important;
}
.module-demo-heading h2{
  font-size:clamp(2rem,3.8vw,4.1rem) !important;
}
.module-demo-frame-wrap{
  max-width:1120px !important;
}
.imac-demo-shell{
  max-width:1040px !important;
  position:relative !important;
  line-height:0;
}
.imac-demo-shell img.imac-frame{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 24px 44px rgba(0,0,0,.46));
}
/* Actual transparent screen hole in the supplied iMac PNG: x=47..1076, y=42..627 on 1122x904 */
.imac-screen-content{
  left:4.19% !important;
  right:4.10% !important;
  top:4.65% !important;
  bottom:30.64% !important;
  border-radius:0 !important;
  z-index:1;
  line-height:normal;
  box-shadow:none !important;
  background:#050b1d !important;
}
.envia-ai-skin-screen{
  overflow:hidden !important;
}
.demo-product-shell{
  height:100%;
  width:100%;
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  background:
    radial-gradient(circle at 10% 20%, rgba(33,181,255,.2), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(157,88,255,.18), transparent 32%),
    linear-gradient(135deg,#06142c 0%,#07163a 42%,#120d3e 100%);
  color:#eef8ff;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.demo-avatar-rail{
  height:100%;
  padding:12px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:linear-gradient(180deg,rgba(2,8,24,.78),rgba(5,12,32,.58));
  border-right:1px solid rgba(255,255,255,.09);
}
.rail-mark{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#071327;
  font-weight:950;
  background:linear-gradient(135deg,#3ce7ff,#9b6cff);
  box-shadow:0 0 22px rgba(70,217,255,.42);
  margin-bottom:6px;
}
.rail-avatar{
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  color:#dff8ff;
  background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045));
  font-size:12px;
  font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}
.rail-avatar.active{
  color:#fff;
  border-color:rgba(89,234,255,.58);
  box-shadow:0 0 0 3px rgba(83,231,255,.11),0 0 22px rgba(83,231,255,.42),inset 0 0 18px rgba(155,108,255,.16);
}
.demo-hub-stage{
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}
.demo-hub-header{
  height:56px;
  flex:0 0 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,.09);
  background:rgba(2,9,28,.42);
}
.demo-kicker{
  display:block;
  margin-bottom:3px;
  color:#67edff;
  font-size:10px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:900;
}
.demo-hub-header h3{
  margin:0;
  color:#fff;
  font-size:17px;
  line-height:1.05;
  letter-spacing:-.035em;
}
.demo-page-owner{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border:1px solid rgba(83,231,255,.18);
  border-radius:999px;
  color:#dffbff;
  background:rgba(83,231,255,.08);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.demo-page-owner span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#58f2ff;
  box-shadow:0 0 12px rgba(88,242,255,.9);
}
.demo-hub-body{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 305px;
}
.demo-chat-column{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:16px 16px 14px;
  border-right:1px solid rgba(255,255,255,.07);
}
.demo-thread{
  flex:1 !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end;
  gap:12px !important;
  overflow:hidden !important;
}
.demo-message{
  position:relative;
  max-width:78% !important;
  padding:12px 14px !important;
  border-radius:20px !important;
  line-height:1.42 !important;
  font-size:13px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 16px 36px rgba(0,0,0,.2) !important;
}
.demo-message.user{
  align-self:flex-end !important;
  border-bottom-right-radius:9px !important;
  background:linear-gradient(135deg,rgba(37,204,255,.28),rgba(142,88,255,.25)) !important;
  border-color:rgba(82,231,255,.32) !important;
}
.demo-message.sophie{
  align-self:flex-start !important;
  border-bottom-left-radius:9px !important;
  background:rgba(255,255,255,.075) !important;
  border-color:rgba(255,255,255,.13) !important;
}
.demo-message.sophie::before{
  content:"S";
  position:absolute;
  left:-42px;
  top:2px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#06142b;
  font-weight:950;
  background:linear-gradient(135deg,#3ce7ff,#9b6cff);
  box-shadow:0 0 18px rgba(83,231,255,.35);
}
.demo-composer{
  flex:0 0 auto;
  margin-top:12px !important;
  padding:8px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 0 18px rgba(255,255,255,.025);
}
.demo-composer input{
  min-width:0;
  border:0 !important;
  background:transparent !important;
  padding:8px 10px !important;
  font-size:12px !important;
}
.demo-composer button{
  padding:9px 13px !important;
  font-size:12px;
  box-shadow:0 0 18px rgba(83,231,255,.28) !important;
}
.demo-side-panel{
  min-width:0;
  padding:16px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015)) !important;
  border-left:0 !important;
  overflow:hidden !important;
}
.demo-pack-card{
  height:100%;
  display:flex;
  flex-direction:column;
  border-radius:22px !important;
  padding:14px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.04)) !important;
  border:1px solid rgba(83,231,255,.22) !important;
  box-shadow:0 0 32px rgba(83,231,255,.10),inset 0 0 0 1px rgba(255,255,255,.025) !important;
}
.demo-pack-card h4{
  font-size:18px !important;
  line-height:1.18 !important;
  margin-bottom:8px !important;
}
.demo-pack-card p{
  font-size:12px !important;
  line-height:1.42 !important;
}
.demo-module-grid{
  grid-template-columns:1fr !important;
  gap:7px !important;
  max-height:182px !important;
  overflow:auto !important;
  padding-right:3px;
}
.demo-module-chip{
  border-radius:12px !important;
  padding:7px 9px !important;
  font-size:10px !important;
  letter-spacing:.04em;
}
.demo-ai-row{
  max-height:72px;
  overflow:hidden;
}
.demo-ai-row b{
  font-size:9px !important;
  padding:5px 7px !important;
}
.demo-result-actions{
  margin-top:auto !important;
  padding-top:12px;
}
.demo-result-actions button,
.demo-result-actions a{
  font-size:10px !important;
  padding:8px 9px !important;
}
.demo-prompt-row{
  margin-top:18px !important;
}
.demo-note{
  margin-top:12px !important;
}
@media (max-width:980px){
  .imac-demo-shell{max-width:100% !important;background:transparent !important;border:0 !important;box-shadow:none !important;overflow:visible !important;}
  .imac-demo-shell img.imac-frame{opacity:1 !important;}
  .imac-screen-content{left:4.19% !important;right:4.10% !important;top:4.65% !important;bottom:30.64% !important;border-radius:0 !important;}
  .demo-product-shell{grid-template-columns:44px minmax(0,1fr);}
  .demo-hub-body{grid-template-columns:1fr;}
  .demo-side-panel{display:none !important;}
  .demo-hub-header{height:50px;flex-basis:50px;padding:0 12px;}
  .demo-page-owner{display:none;}
  .demo-chat-column{padding:12px;}
  .demo-message{max-width:86% !important;font-size:12px !important;}
}
@media (max-width:620px){
  .module-demo-heading p{font-size:.95rem !important;}
  .demo-avatar-rail{display:none;}
  .demo-product-shell{grid-template-columns:1fr;}
  .demo-hub-header h3{font-size:14px;}
  .demo-kicker{font-size:9px;}
  .demo-message.sophie::before{display:none;}
  .demo-composer{border-radius:18px;}
}
