/* Тост-уведомления (тёмные, «стекло») */
#toastRoot{
  position:fixed;
  right:18px;
  top:16px;
  z-index:9999;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  min-width:260px;
  max-width:420px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background:linear-gradient(180deg, rgba(17,24,39,0.92), rgba(17,24,39,0.78));
  box-shadow:0 18px 45px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  transform: translateY(-6px);
  opacity:0;
  animation: toastIn .18s ease-out forwards;
  position:relative;
  overflow:hidden;
}
.toast:before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(600px 220px at 20% -10%, rgba(176,138,44,0.30), transparent 60%),
              radial-gradient(600px 220px at 80% -10%, rgba(47,125,90,0.28), transparent 55%);
  opacity:.35;
  pointer-events:none;
}
.toast .row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  position:relative;
}
.toast .icon{
  width:18px;
  height:18px;
  flex:0 0 auto;
  border-radius:6px;
  margin-top:1px;
  background:rgba(255,255,255,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}
.toast .title{
  font-weight:800;
  letter-spacing:.2px;
  color:rgba(255,255,255,0.92);
  margin:0;
  font-size:13px;
  line-height:1.2;
}
.toast .text{
  margin-top:4px;
  color:rgba(226,232,240,0.92);
  font-size:12.5px;
  line-height:1.35;
  white-space:pre-wrap;
  word-break:break-word;
}
.toast .close{
  margin-left:auto;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.85);
  border-radius:10px;
  padding:4px 8px;
  cursor:pointer;
}
.toast .bar{
  height:3px;
  border-radius:999px;
  margin-top:8px;
  background:rgba(255,255,255,0.12);
  overflow:hidden;
  position:relative;
}
.toast .bar > i{
  position:absolute;
  inset:0;
  transform: translateX(-100%);
  animation: toastBar linear forwards;
  background: linear-gradient(90deg, rgba(176,138,44,0.95), rgba(47,125,90,0.92));
}
.toast[data-type="error"] .bar > i{
  background: linear-gradient(90deg, rgba(239,68,68,0.95), rgba(176,138,44,0.92));
}
.toast[data-type="success"] .bar > i{
  background: linear-gradient(90deg, rgba(22,163,74,0.95), rgba(47,125,90,0.92));
}
@keyframes toastIn{
  to{ transform: translateY(0px); opacity:1; }
}
@keyframes toastOut{
  to{ transform: translateY(-8px); opacity:0; }
}
@keyframes toastBar{
  to{ transform: translateX(0%); }
}
