.toast-container {
  position: fixed;
  bottom: 1.6rem;
  right: 2rem;
  z-index: 1000;
  pointer-events: none;
  min-width: 320px;
  max-width: 450px;
}

.toast {
  background: rgba(12, 22, 41, 0.95);
  border: 4px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 1rem;
  font-size: 0.6rem;
  line-height: 1.5;
  pointer-events: auto;
  cursor: var(--cursor-pointer), pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
  width: 100%;
  word-wrap: break-word;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.hide {
  opacity: 0;
  transform: translateX(20px);
}

.toast:hover {
  background: rgba(15, 27, 50, 0.95);
  border-color: var(--accent-strong);
}

.toast .stat-icon {
  width: 16px !important;
  height: 16px !important;
  vertical-align: middle;
  margin: 0 2px;
  max-width: 16px;
  max-height: 16px;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .toast-container {
    bottom: 1.4rem;
    right: 1.5rem;
    max-width: 500px;
  }

  .toast {
    font-size: 0.58rem;
    padding: 0.75rem 0.95rem;
  }
}

@media (max-width: 768px) {
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
    max-width: calc(100% - 2rem);
  }

  .toast {
    font-size: 0.65rem;
    padding: 0.7rem 0.9rem;
    line-height: 1.4;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .toast-container {
    bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .toast-container {
    bottom: 0.8rem;
    right: 0.8rem;
    left: 0.8rem;
    max-width: calc(100% - 1.6rem);
  }

  .toast {
    font-size: 0.6rem;
    padding: 0.6rem 0.8rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .toast-container {
    bottom: calc(105px + env(safe-area-inset-bottom, 0px));
  }
}