.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: 24px;
  left: auto;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

body.ticket-modal-open .toast-container {
  top: 16px;
  right: 16px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  padding: 14px 18px;
  background: var(--color-primary);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(2, 29, 62, 0.35);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}

.toast--success {
  border-left: 4px solid var(--color-gold);
}

.toast--error {
  border-left: 4px solid #e57373;
}

.toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(217, 164, 65, 0.18);
  color: var(--color-gold);
}

.toast--error .toast__icon {
  background: rgba(229, 115, 115, 0.18);
  color: #e57373;
}

.toast__message {
  flex: 1;
}

@media (max-width: 1024px) {
  .toast-container {
    top: calc(var(--header-height) + 10px);
    right: 16px;
  }

  body.ticket-modal-open .toast-container {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 500px) {
  .toast-container {
    top: calc(var(--header-height) + 8px);
    right: 12px;
  }

  body.ticket-modal-open .toast-container {
    top: 10px;
    right: 10px;
  }

  .toast {
    min-width: 0;
    max-width: min(300px, calc(100vw - 24px));
    width: auto;
    padding: 12px 14px;
    font-size: 13px;
  }
}
