.toast-container {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 99999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-right: 5px solid #2563eb;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  padding: 14px 15px;
  animation: toastIn 0.22s ease-out;
  direction: rtl;
}

.toast-message.success {
  border-right-color: #16a34a;
}

.toast-message.error {
  border-right-color: #dc2626;
}

.toast-message.warning {
  border-right-color: #f59e0b;
}

.toast-message.info {
  border-right-color: #2563eb;
}

.toast-icon {
  font-size: 18px;
  line-height: 1.2;
}

.toast-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.toast-close {
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.toast-close:hover {
  color: #111827;
}

@keyframes toastIn {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
body.auth-checking .nav-links {
  visibility: hidden;
}

body.auth-checking .app-shell {
  opacity: 0;
  pointer-events: none;
}

body.auth-ready .nav-links {
  visibility: visible;
}

body.auth-ready .app-shell {
  opacity: 1;
  pointer-events: auto;
}