#ks-toast-container {
  position: fixed;
  top: calc(var(--ks-nav-height, 64px) + 25px);
  right: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ks-toast {
  position: relative;       /* important pel ::before */
  isolation: isolate;       /* EVITA flicker */
  will-change: opacity, transform;

  min-width: 260px;
  max-width: 420px;
  padding: 0.95rem 1.15rem;
  border-radius: 12px;
  display: flex;
  align-items: start;
  gap: 0.8rem;
  font-size: 0.93rem;
  line-height: 1.34;

  background-color: rgba(255,255,255,0.08);    /* canviat */
  backdrop-filter: blur(20px) saturate(230%);
  border: 1px solid rgba(255,255,255,0.20);

  --ks-shadow:
    0 6px 22px rgba(0,0,0,0.55),
    inset 0 0 1px rgba(255,255,255,0.25);
  box-shadow: var(--ks-shadow);

  animation: fadeIn 0.25s ease-out;
}

.ks-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.01); /* fixa parpelleig */
  border-radius: inherit;
  pointer-events: none;
}

.ks-toast-success i { color: #79ffb5; }
.ks-toast-error   i { color: #ff6f6f; }
.ks-toast-warning i { color: #ffe48a; }
.ks-toast-info    i { color: #89c3ff; }

.ks-toast-hide {
  will-change: opacity, transform;
  animation: fadeOut 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0.2; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(8px); }
}
