
/* V11.4 Smart Scan Assistant — scanner-only visual layer */

.v114-scan-assistant{
  position:fixed;
  z-index:2147483000;
  left:12px;
  right:12px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  max-width:620px;
  margin:0 auto;
  padding:16px;
  border-radius:22px;
  color:#f4fbff;
  background:
    linear-gradient(145deg,rgba(6,23,39,.98),rgba(2,12,23,.99));
  border:1px solid rgba(42,207,255,.28);
  box-shadow:
    0 20px 55px rgba(0,0,0,.52),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.v114-scan-assistant[hidden]{
  display:none!important;
}

.v114-scan-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.v114-eyebrow{
  color:#36ed98;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}

.v114-quality-title{
  margin-top:5px;
  font-size:17px;
  line-height:1.2;
  font-weight:900;
}

.v114-quality-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  color:#a7bbcf;
  background:rgba(4,17,30,.88);
  border:1px solid rgba(97,137,169,.24);
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}

.v114-quality-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#64748b;
}

.v114-quality-pill.good{
  color:#6ff6b1;
  border-color:rgba(55,243,154,.34);
}
.v114-quality-pill.good .v114-quality-dot{
  background:#37f39a;
  box-shadow:0 0 10px rgba(55,243,154,.72);
}

.v114-quality-pill.warning{
  color:#ffd977;
  border-color:rgba(250,204,21,.32);
}
.v114-quality-pill.warning .v114-quality-dot{
  background:#facc15;
  box-shadow:0 0 10px rgba(250,204,21,.64);
}

.v114-quality-pill.bad{
  color:#ff9bad;
  border-color:rgba(251,113,133,.32);
}
.v114-quality-pill.bad .v114-quality-dot{
  background:#fb7185;
  box-shadow:0 0 10px rgba(251,113,133,.64);
}

.v114-quality-meter{
  height:7px;
  margin-top:13px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(53,75,96,.32);
}

.v114-quality-bar{
  width:4%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff647d,#facc15,#37f39a,#29d9ff);
  transition:width .25s ease;
}

.v114-scan-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:13px;
}

.v114-scan-stats div,
.v114-last-scan{
  padding:10px;
  border-radius:15px;
  background:rgba(5,19,33,.88);
  border:1px solid rgba(75,135,177,.17);
}

.v114-scan-stats small,
.v114-last-scan small{
  display:block;
  color:#8095aa;
  font-size:8px;
  font-weight:900;
  letter-spacing:.09em;
}

.v114-scan-stats strong{
  display:block;
  margin-top:3px;
  font-size:18px;
}

.v114-last-scan{
  margin-top:8px;
}

.v114-last-scan strong{
  display:block;
  margin-top:4px;
  color:#dff6ff;
  font-size:12px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.v114-rescan{
  width:100%;
  min-height:44px;
  margin-top:10px;
  border-radius:15px!important;
  color:#fff!important;
  font-weight:900!important;
  background:linear-gradient(135deg,#2464ff,#25b9e8)!important;
  border:1px solid rgba(97,190,255,.48)!important;
}

@media(max-width:430px){
  .v114-scan-assistant{
    left:8px;
    right:8px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    padding:13px;
  }

  .v114-quality-title{
    font-size:15px;
  }
}
