
/* ==========================================================
   V39 CONNECT ENGINE — visible optimize triggers + D1-ready UI
   ========================================================== */

.v39-engine-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:14px 0 18px;
  padding:14px;
  border:1px solid rgba(0,224,164,.28);
  background:rgba(0,224,164,.055);
  border-radius:16px;
}
.v39-engine-bar .v39-title{
  font-weight:900;
  color:#eafff7;
  margin-right:auto;
}
.v39-engine-status{
  font-size:12px;
  color:#9fb7cc;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(164,191,224,.16);
  background:rgba(255,255,255,.035);
}
.v39-engine-btn{
  min-height:44px!important;
  border-color:rgba(0,224,164,.45)!important;
  background:linear-gradient(135deg,rgba(0,224,164,.22),rgba(0,215,255,.10))!important;
  color:#f3fffb!important;
}
.v39-engine-btn.secondary{
  background:rgba(255,255,255,.04)!important;
  border-color:rgba(164,191,224,.18)!important;
}
.v39-floating-optimize{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9999;
  border-radius:16px!important;
  min-height:54px!important;
  padding:0 20px!important;
  box-shadow:0 18px 50px rgba(0,224,164,.18),0 0 0 1px rgba(0,224,164,.25)!important;
}
.v39-result-pulse{
  animation:v39pulse 1.2s ease-in-out 1;
}
@keyframes v39pulse{
  0%{box-shadow:0 0 0 0 rgba(0,224,164,.45)}
  100%{box-shadow:0 0 0 18px rgba(0,224,164,0)}
}
@media(max-width:760px){
  .v39-floating-optimize{left:14px;right:14px;bottom:14px;width:calc(100% - 28px)}
}
